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.
)

Is something missing or incorrect? Edit this page on Github…