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 152 views
1 answer 162 views
1 answer 242 views
1 answer 189 views
4 answers 420 views
420 views asked Apr 21, 2014 by avibootz
...