php replace all char from a set with space code example
Example 1: str_replace php
echo str_replace("worss","world","Hello worss in PHP!!");
Example 2: replace all numbers in string php
$words = preg_replace('/[0-9]+/', '', $words);
echo str_replace("worss","world","Hello worss in PHP!!");
$words = preg_replace('/[0-9]+/', '', $words);