Hi I'm trying to make this preg_match case insensitive
$mot=/"#".$_POST['nom']."#";
if (preg_match($mot,$line)){ $existe=true;break 1;}
I know I have to add /i but it's not working!
Hi I'm trying to make this preg_match case insensitive
$mot=/"#".$_POST['nom']."#";
if (preg_match($mot,$line)){ $existe=true;break 1;}
I know I have to add /i but it's not working!
Add i
after the search
$mot="#".$_POST['nom']."#i";
if (preg_match($mot,$line)){ $existe=true;break 1;}