PHP str_ireplace not working
<p>Ok so here's my code.</p>

<pre><code>$line = str_ireplace($word, "&lt;b&gt;".$word."&lt;/b&gt;", $line);
echo "The word ".$word." was replaced from the line:&lt;br /&gt;";
echo htmlspecialchars($line)."&lt;p /&gt;";
</code></pre>

<p>Output is HTML so here is a pastebin link:
<a href="http://pastebin.com/Nje4sVwF" rel="nofollow">http://pastebin.com/Nje4sVwF</a></p>

<p>I appreciate any help, I have no idea why this isn't working :/</p>

<p>If it helps anyone this is all wrapped in a foreach statement which I can post if it's needed.</p>

<p>Just for 100% clarity, the word isn't being replaced in the string $line. I don't know why it isn't doing this, I'm assuming it's because it couldn't find $word.</p>
