need programmer for little fast script in php

Discussion in 'Programming' started by david2626, Oct 14, 2009.

  1. #1
    i need little php job
    the script have to be this
    i thraw to the text areaa words like:
    "text 123 , text 345 , text 123 , text 345 , text 123 , text 345 , text 123 , text 345 , text 123 , text 345 , text 123 , text 345 , text 123 , text 345 "
    and the script have to make ever "," to anohter line
    like this:
    text 123
    text 345
    text 123
    text 345
    text 123
    text 345
    (in html is to convet "," to <br>)
    but in php i dont know to do this.
    so i want this little script
    pm me or my gmail is
     
    david2626, Oct 14, 2009 IP
  2. david2626

    david2626 Well-Known Member

    Messages:
    225
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    136
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    please stop send me - i get someone.
    thank you for all!
     
    david2626, Oct 14, 2009 IP
  3. cosminx2003

    cosminx2003 Active Member

    Messages:
    581
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    
    <?php
    $words_list=file_get_contents('wordslist.txt') // if you don't have the words in a txt file then just write $words_list='......the list.........';
    $words_list=str_replace(' , ','<br>',$words_list);
    echo $words_list;
    ?>
    
    PHP:
    You're welcome.
     
    cosminx2003, Oct 14, 2009 IP