$string = "I am a sentence with % in it"; if(strstr($string, '%')) { echo "% is in the string"; } else { echo "% is not in the string"; }
← 后一篇 | 前一篇 →