Welcome aboard! We are happy you are here and wish you good net-raft!
<!doctype html>
<html lang="en">
<head>
</head>
<body>
<?php
function my_replace($rep_string) {
$text1 = array('0','1','2','3','4','5','6','7','8','9');
$text2 = array(' ',' ',' ',' ',' ',' ',' ',' ',' ',' ');
$rep_string = str_replace($text1, $text2, $rep_string);
return $rep_string;
}
$mystring = "Hello2017World!";
echo my_replace($mystring);
?>
</body>
</html>
The most helpful PHP solutions
detect browser phpPHP Click to see more ... 4.6K 408