I am wanting to use \"keywords\" within a large string. These keywords start and end using my_keyword and are user defined. How, within a large string, can I sear
Explode on "*"
$str = "PHP is the *best*, *its* the *most popular* and *I* love it."; $s = explode("*",$str); for($i=1;$i<=count($s)-1;$i+=2){ print $s[$i]."\n"; }
output
$ php test.php best its most popular I