How can i cut the rest of a string, when i only know that it is
closed with a , ?
Example:
$string = "kyo wa doyoubi desu kara,xxxxxxxxx xx ";
$new = cut_it_right($s tring);
==> $new == "kyo wa doyoubi desu kara,";
closed with a , ?
Example:
$string = "kyo wa doyoubi desu kara,xxxxxxxxx xx ";
$new = cut_it_right($s tring);
==> $new == "kyo wa doyoubi desu kara,";
Comment