Answers for "remove all afterspecific textfrom srting php"

PHP
2

php remove after character

$s = 'Posted On April 6th By Some Dude';
echo strstr($s, 'By', true); // Posted On April 6th
Posted by: Guest on October-06-2020

Browse Popular Code Answers by Language