Case-insensitive Pattern Matching : eregi « String « PHP






Case-insensitive Pattern Matching

 
<?php

    $a = "UPPERCASE";

    echo (int) ereg ('uppercase', $a);
    echo "\n";
    echo (int) eregi ('uppercase', $a);
    echo "\n";

?>
  
  








Related examples in the same category

1.Getting the title of a remote page
2.eregi() function searches a string for another string.
3.eregi.php