Hi!
I want to find out if a string contains specified characters. Which function should i use?
Thanks for your answer!
if you only need to find a string use strpos(), otherwise i say using preg_match or ereg.
like
$string = "radley"; $match = preg_match("/[ary]/i");
$match would now conatain TRUE
oops, made a mistake,
$match = preg_match("/[ary]/i");
should be
$match = preg_match("/[ary]/i", $string);