When I get the information using HTML form from users there is a big chunk of line separated by commas. How could I put small pieces separated by a comma on a new line? It's like: blahblah1, blahblah2, blahblah3 and I want them to be like:
blahblah1
blahblah2
blahblah3

Any boby knows how to make it?

Thanks

Zhen

    <?
    $string = 'blahblah1, blahblah2, blahblah3';
    $string = str_replace (', ', "<br>\n", $string);
    ?>

      Wow, this place is really amazing. I tried your solution and it worked so perfectly! Thanks, Devin. You are a PHP expert!

        Write a Reply...