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
...