php - How do I get rid of this strange "empty delimiter" message
Posted
by Steven
on Stack Overflow
See other posts from Stack Overflow
or by Steven
Published on 2010-06-10T18:47:43Z
Indexed on
2010/06/10
18:52 UTC
Read the original article
Hit count: 170
php
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>";
© Stack Overflow or respective owner