how can i write this code in PHP? I tried several things but it wouldnt work. Can u help me please?
return s.split(/?
/).join("<br>");
Thanks!
how can i write this code in PHP? I tried several things but it wouldnt work. Can u help me please?
return s.split(/?
/).join("<br>");
Thanks!
It looks like you using regular expression. How about this one
echo implode(preg_split('/?
/', $s), '<br>');