Replace the specific characters with another from array PHP code.


$vowels = array("a", "e"," "i","o","u");
$outputText = str_replace($vowels, '_', "My name is Text Man");


The output will be as follows:

My n_m_ _s T_xt M_n

Popular posts from this blog

ATG Issue - ConcurrentUpdateException - on BCC Deployment

[Solved] Hive installation error: java.net.URISyntaxException: Relative path in absolute URI

What are EAR, JAR and WAR files in J2EE?