str::sentences($string)

Returns an array with all sentences in a string

  • $string (string)
  • return (string)

Example

<?php
$sentences = str::sentences('Kirby is a fileā€‘based CMS
Easy to setup. Easy to use. Flexible as hell.');
a::show($sentences);
Array
(
  [0] => Kirby is a fileā€‘based CMS.
  [1] => Easy to setup.
  [2] => Easy to use.
  [3] => Flexible as hell.
)