[php] PHP remove all characters before specific string

I need to remove all characters from any string before the occurrence of this inside the string:

"www/audio"

Not sure how I can do this.

This question is related to php string

The answer is


You can use strstr to do this.

echo strstr($str, 'www/audio');

Similar questions with php tag:

Similar questions with string tag: