Answers for "php str_replace ignore case"

PHP
1

str_ireplace

<?php
$bodytag = str_ireplace("%body%", "black", "<body text=%BODY%>");
echo $bodytag; // <body text=black>
?>
Posted by: Guest on February-28-2020
0

is replace case sensitive php

//Will make sure to replace anything that matches
str_ireplace()
Posted by: Guest on May-22-2021

Browse Popular Code Answers by Language