php - How do I get rid of this strange "empty delimiter" message
- by Steven
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:
Warning: stristr() [function.stristr]: Empty delimiter in ... line 55
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
$data = stristr("$text", "$key");
$result = string_limit_words($data,2);
print "$result<BR>";