How to merge two words in a string with PHP

1 Answer

0 votes
$s = "php java c# python c++";
   
$s = str_replace("c# python", "c#python", $s);
        
echo $s;



/*
run

php java c#python c++

*/

 



answered Dec 1, 2020 by avibootz

Related questions

1 answer 147 views
1 answer 153 views
1 answer 222 views
1 answer 179 views
4 answers 395 views
395 views asked Apr 21, 2014 by avibootz
...