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.
Sumber http://developer-paradize.blogspot.com
It is such a uncomplicated solution.
$string = "this is example"; $final = str_replace(" ","_",$string); //output : this_is_exampleAlternative solution tin hold out to purpose regular expression.
Sumber http://developer-paradize.blogspot.com
Comments
Post a Comment