The following code:
<?php
$str='Who are you?';
echo chop($str,'you?').'<br>';
echo chop($str,'are you?').'<br>';
?>
gives me the output:
Who are
Wh
Why the second output is
Wh
and not
who
The following code:
<?php
$str='Who are you?';
echo chop($str,'you?').'<br>';
echo chop($str,'are you?').'<br>';
?>
gives me the output:
Who are
Wh
Why the second output is
Wh
and not
who