3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $text = "Hi My name is firas. yeah. third sentnece. umhm"; $sentences = explode('.', $text); $max_sentences = count($sentences); var_dump( $max_sentences, $sentences);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
int(4) array(4) { [0]=> string(19) "Hi My name is firas" [1]=> string(5) " yeah" [2]=> string(15) " third sentnece" [3]=> string(5) " umhm" }