Remove contents after a certain string of characters
Posted: Tue Jul 08, 2008 1:49 pm
Say I have a variable containing a text string:
Is there a way to remove everything after (and including) the STOP comment?
Code: Select all
$myStuff="This is my stuff and I want to remove <!--STOP--> everything after the stop comment"