Answers for "remove - in php"

PHP
7

str_replace php

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

str_replace php variable

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

Browse Popular Code Answers by Language