Skip to main content

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

The old company comeup with new brand MAXBEN - Logo meaning

I am so happy to design this logo for my friend Suresh Mahalingam to boost his paint business to the next level. The first step in his process is logo design. He had a clear idea about his business, processes, pricing and target audience. I just collect all those information from him and created the logo with some appropriate meanings. Check out the logo here