remove underscore from string php code example
Example 1: php function to remove underscore
$original = 'lets_go_to_the_beach_today_my_friend';
$replace = str_replace('_', ' ', $original, $count);
echo $count;
Example 2: php function to remove underscore
str_replace($remove, $replace, $the_string)