Is there any possibility to use str_replace for multiple value replacement in a single line. For example i want to replace \' \' with \'-\'>
str_replace
\' \'
\'-\'>
Yes with the help of str_replace function we can do multiple value replacement in a single line without array.Here is my code
echo str_replace(" ","-",str_replace("&","","I like Tea&Coffee"));