Case-insensitive version of str_replace( ): str_ireplace( ) : str_ireplace « String « PHP






Case-insensitive version of str_replace( ): str_ireplace( )

 
<?
    $string = "this is a TEST";
    $newstring = str_ireplace("TEST", "test", $string);
    print $newstring;
?>
  
  








Related examples in the same category

1.Implementing a phrase-substitution algorithm