php remove charactes from a string 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);