Answers for "strreplace in php array"

PHP
2

replace all php

$vowels = array("a", "e", "i", "o", "u", "A", "E", "I", "O", "U");
$onlyconsonants = str_replace($vowels, "", "Hello World of PHP");
// Fornece: Hll Wrld f PHP
Posted by: Guest on May-23-2020
0

replace all numbers in string php

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

Browse Popular Code Answers by Language