remove - in php code example
Example 1: str_replace php
echo str_replace("worss","world","Hello worss in PHP!!");
Example 2: str_replace php variable
$var1 = 'hello_john';
$var2 = str_replace("_", "-", $var1);
echo $var2; // hello-john
echo str_replace("worss","world","Hello worss in PHP!!");
$var1 = 'hello_john';
$var2 = str_replace("_", "-", $var1);
echo $var2; // hello-john