How To Supercede A Infinite Alongside An Underscore Inwards Php?

Use str_replace business office of php to supervene upon a infinite amongst an underscore. I am posting this for those of yous who convey struggled amongst this, inwards hopes that it but mightiness salve a pair of hours.
It is such a uncomplicated solution.
 $string = "this is example"; $final = str_replace(" ","_",$string); //output : this_is_example 
Alternative solution tin hold out to purpose regular expression.


Sumber http://developer-paradize.blogspot.com

Comments

Popular posts from this blog

What Are The Main Components of a Computer System

Top Qualities To Look For In An IT Support Team

How To Integrate Google Adwords Api Into Codeigniter?