Remove All After Delimiter PHP

Posted by Belgin Fish on Stack Overflow See other posts from Stack Overflow or by Belgin Fish
Published on 2010-04-06T22:01:37Z Indexed on 2010/04/06 23:03 UTC
Read the original article Hit count: 315

Filed under:
|

Hi, I'm just wondering how I could remove everything after a certain substring in PHP

ex:

Posted On April 6th By Some Dude

I'd like to have it so that it removes all the text including, and after, the sub string "By"

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about string-manipulation