Results 1 to 9 of 9

Thread: Loop thru an array

Threaded View

  1. #4
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Loop thru an array

    check out the foreach part


    you could do like
    PHP Code:
    $aString "1, 2, 3, 4, 5";

    $myArr split(","$aString);

    foreach(
    $myArr as $x ){
         print 
    $x;

    or just use the for loop like I did above.
    Last edited by oceanebelle; Jul 21st, 2005 at 07:55 PM. Reason: ehehe.. split function was not right. :D

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width