Answers for "i want to replce the value in string in php'"

PHP
32

php replace

str_replace ($search, $replace, $subject);
Posted by: Guest on June-17-2019
0

str_replace php variable

$var1 = 'hello_john';
$var2 = str_replace("_", "-", $var1);
echo $var2; // hello-john
Posted by: Guest on January-07-2021

Code answers related to "i want to replce the value in string in php'"

Browse Popular Code Answers by Language