Re: [PHP-WIN] loop through string

2003-01-05 Thread Gregory Lewis
Excuse me, that was a thanks to Cam and Ignatius, and the loop-through-llist using the explode function was just the ticket. -Greg Lewis -- Original Message -- From: "Gregory Lewis" <[EMAIL PROTECTED]> Reply-To: <[EMAIL PROTECTED]> Date: Sun, 5 Jan 200

Re: [PHP-WIN] loop through string

2003-01-05 Thread Gregory Lewis
Thanks Cam and Rasmus, looks simple enough. You guys are awesome. -Greg -- Original Message -- From: "Cam Dunstan" <[EMAIL PROTECTED]> Date: Mon, 6 Jan 2003 08:10:43 +1100 >Welcome to the list Greg, > >There are thousand ways - try converting the string to

Re: [PHP-WIN] loop through string

2003-01-05 Thread Cam Dunstan
Welcome to the list Greg, There are thousand ways - try converting the string to an array then looping through the array with either a for() loop, a do-while or a foreach() $my_array = explode(",", $mylist); foreach ($my_array as $one_element) { echo $one_element.""; } - or - $my_array =

Re: [PHP-WIN] loop through string

2003-01-05 Thread Ignatius Reilly
// transform string into an array $arr = explode( ',', $mylist ) ; // loop the array foreach( $arr as $element ) Ignatius - Original Message - From: "Gregory Lewis" <[EMAIL PROTECTED]> To: "php-windows" <[EMAIL PROTECTED]> Sent: Sunday, January