What does Warning: strpos() [function.strpos]: Empty delimiter in mean?
I have this:
if(strpos(''', $text) === false)
{
$text = str_replace(''', "'", $text);
}
At a guess, I'd say $text
is an empty string (thanks Mark for pointing out the specifics)
Edit: Also, another guess is you have the parameters in the wrong order. The method signature of strpos is
int strpos ( string $haystack , mixed $needle [, int $offset = 0 ] )
See http://php.net/manual/en/function.strpos.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With