str_ireplace()
Function:
Syntax:
str_ireplace(finding character, replacement character, string, count);finding character(optional) :find the character that we want to replaceExample:
<?php
$str= “hello php”;
echo str_ireplace(“php”,”umer”,$str);
?>
$str= “hello php”;
echo str_ireplace(“php”,”umer”,$str);
?>
Output:
hello umer
0 comments:
Post a Comment