php - How do I get rid of this strange "empty delimiter" message
<p>I have some code that uses the stristr function to extract data I need. It works, in that it gives me the results I'm looking for. BUT (you knew there was a but), it gives me this error message for every iteration of the loop: </p>

<pre><code>Warning: stristr() [function.stristr]: Empty delimiter in ... line 55
</code></pre>

<p>Like I said, the code works apart from this error. Can anyone suggest how i could amend this code to get rid of the message? Thanks in advance</p>

<pre><code>$data = stristr("$text", "$key");
$result = string_limit_words($data,2);
print "$result&lt;BR&gt;";
</code></pre>
