📅  最后修改于: 2022-03-11 14:54:18.753000             🧑  作者: Mango
php function strpos return position of string if it's not false or -1 then your string contain character.
$searchForValue = ',';
$stringValue = '115,251';
if( strpos($stringValue, $searchForValue) !== false ) {
echo "Found";
}