Forum Moderators: coopster
strpos($copy, $var[string])
$copy is an article for which I have applied the following to:
$copy = str_replace($var[string], $ital, $article[copy]);
This line simply brackets every instance of the $var[string] with <i></i>.
Combined all the code works fine for all of the other articles but chokes on just one. I suspect it has something to do with the format of the string but I can't see why. I must be missing something obvious but what?
Aha! I found the culprit. The string I'm using to search the copy has a capital 'I' in the word is - while the copy uses a lowercase 'i'. I knew it had to be something silly. Thanks for listening.