How to replace a sub-string and ignore case sensitivity in PHP

1 Answer

0 votes
$s = str_ireplace("php", "string", "PHP Case-insensitive");

echo $s;




/*
run:

string Case-insensitive

*/

 



answered Aug 12, 2020 by avibootz

Related questions

1 answer 244 views
2 answers 216 views
216 views asked Oct 15, 2015 by avibootz
1 answer 184 views
184 views asked Jun 14, 2014 by avibootz
2 answers 218 views
1 answer 148 views
...