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 337 views
2 answers 334 views
334 views asked Oct 15, 2015 by avibootz
2 answers 356 views
1 answer 269 views
269 views asked Jun 14, 2014 by avibootz
1 answer 226 views
...