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

What are EAR, JAR and WAR files in J2EE?

ATG Issue - ConcurrentUpdateException - on BCC Deployment

How the competition helps to reduce the price of TEA?