Code: Select all
$myStuff="This is my stuff and I want to remove <!--STOP--> everything after the stop comment"Moderator: General Moderators
Code: Select all
$myStuff="This is my stuff and I want to remove <!--STOP--> everything after the stop comment"Code: Select all
$myStuff="This is my stuff and I want to remove <!--STOP--> everything after the stop comment";
$parts = explode('<!--STOP-->', $myStuff);
$myStuff = $parts[0];