Answers for "str_replace() function"

PHP
4

str_replace php variable

$var1 = 'hello.world';
$var2 = str_replace(".", "-", $var1);
echo $var2; // hello-world
Posted by: Guest on October-18-2020
7

str_replace php

echo str_replace("worss","world","Hello worss in PHP!!");
Posted by: Guest on June-10-2020

Browse Popular Code Answers by Language