PHP Case-Insensitive Version Of Str_Replace( ): Str_Ireplace( ) – String Function

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

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.