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

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

Install Android SDK in centOs

Installing arules package (Association Rules) in R