Question : php remove everything after a specific character
Answered by : ak-bros
$str = 'Posted On April 6th By Some Dude';
echo strtok($str, 'By'); // Posted On April 6th
Source : https://stackoverflow.com/questions/2588666/remove-portion-of-a-string-after-a-certain-character | Last Update : Sat, 09 Jul 22