Mega Code Archive

 
Categories / Php / Strings
 

I renders the regular expression non case sensitive

<?php     $s = 'Another beautiful day';     echo (preg_match ('/BEautiFul/i', $s) ? 'MATCH' : 'NO MATCH') . "\n"; ?>