Paul Savage (lostaddiction) wrote in php_dev,
Paul Savage
lostaddiction
php_dev

explode help needed

[solved, thanks to darac]

Me again! And i may be back for more help later too! hehe

Anyways, i need some help with the explode function in php.

If i have an Array of words, how do i display that array and have commas inbetween each word?

From:
Array (
     [0] => one     
     [1] => two     
     [2] => three
     [3] => four five six
 ) 


How do i get it to display onscreen as:
one, two, three, four five six

The important thing is to *not* have a comma at the very end.

thanks in advance! :)

Paul
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded 

  • 3 comments