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]

Re: [PHP-WIN] loop through string

2003-01-05 Thread Gregory Lewis
t; >$my_array = explode(",", $mylist); > >$array_count = count($my_array); > >for ($j = 0; $j < $array_count; $j++) { >echo $my_array[$j]; >echo "\n"; >} > >etc etc. > >Have a squizz at the manual on each() and list() functions and the while(

[PHP-WIN] loop through string

2003-01-05 Thread Gregory Lewis
Hi my name is Greg Lewis and I'm new to this list and to PHP. I have experience with Cold Fusion, and so hopefully the transition won't be too hard. My first question: How do I loop through a comma delimited list? ex: $mylist = "a,b,c,d,e,f,g"; thanks for your time and patience, Greg -- PHP