Php String Remove Characters Until Certain Character

[Solved] Php String Remove Characters Until Certain Character | Php - Code Explorer | yomemimo.com
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

Answers related to php string remove characters until certain character

Code Explorer Popular Question For Php