php replace all letters in string code example
Example 1: php replace string within string
$new_string = str_replace( $take_out, $put_in, $string);
Example 2: replace all numbers in string php
$words = preg_replace('/[0-9]+/', '', $words);
$new_string = str_replace( $take_out, $put_in, $string);
$words = preg_replace('/[0-9]+/', '', $words);