I am new to PHP
and while working on a project I face a problem.
I have the following string Mango, Orange, Banana
Now I tried using str_replace(',', '<br/>',$string)
to replace the coma with the html tag <br>
but I get this result Mango<br/> Orange<br/> Banana
instead of
Mango
Orange
Banana
How can I solve this problem please?