Hi -
I am trying to output all occurances of $word within $text as an array using PREG_MATCH_ALL
preg_match_all("$word",$text,$result);
foreach ($result[0] as $value){
echo "$value<br>";
}
it just keeps saying:
Delimiter must not be alphanumeric or backslash
Please Help !