Answers for "php function replace"

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

Browse Popular Code Answers by Language