I have a result that I retrieved from a database and I need to split the content on the "|" and replace it with "<br>".
How do I do that?
str_replace
To replace '|' with '<br>' do:
$str = str_replace('|', '<br>', $str);
Edit:
Posted too late. Look into explode() too in case you may need it.