Answers for "php eliminate character from string"

PHP
0

replace all numbers in string php

$words = preg_replace('/[0-9]+/', '', $words);
Posted by: Guest on October-21-2020
2

php str replace

<?php
$string = str_ireplace("FoX", "CAT", "the quick brown fox jumps over the lazy dog");
echo $string; // the quick brown CAT jumps over the lazy dog
?>
Posted by: Guest on May-18-2020

Code answers related to "php eliminate character from string"

Browse Popular Code Answers by Language