Answers for "php replace all sapce in word"

PHP
5

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
1

replace exact word in php

$string = preg_replace('/\bthe\b/', '', $string);
Posted by: Guest on May-13-2021

Browse Popular Code Answers by Language