D DzSoundNirvana New member May 27, 2009 #2 $string = "I am a sentence with % in it"; if(strstr($string, '%')) { echo "% is in the string"; } else { echo "% is not in the string"; }
$string = "I am a sentence with % in it"; if(strstr($string, '%')) { echo "% is in the string"; } else { echo "% is not in the string"; }