Thread: str_replace??
View Single Post
Old 09-22-2008, 02:00 PM   #2 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

You have a typing mistake, $highlightWords[i] should be $highlightWords[$i]

It is advisable to turn on full error reporting when writing code to catch simple little problems like this, using error_reporting(E_ALL)
Salathe is offline  
Reply With Quote
The Following User Says Thank You to Salathe For This Useful Post:
CoryMathews (09-22-2008)