Re: Looping through array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



So in other words, you have an array like $arr = array (1,2,3,4,5,6,7,8,9,10) but you want it to render on the page as:

  5 4 3 2 1
10 9 8 7 6

right?

-D


On Nov 16, 2006, at 1:35 PM, Ashley M. Kirchner wrote:

Darrell Brogdon wrote:
    $arr = array(5, 4, 3, 2, 1, 10, 9, 8, 7, 6,);
   The array is in order, from 1 to 10.  It was populated that way.

--
W | It's not a bug - it's an undocumented feature.
 +--------------------------------------------------------------------
 Ashley M. Kirchner <mailto:ashley@xxxxxxxxxx>   .   303.442.6410 x130
 IT Director / SysAdmin / Websmith             .     800.441.3873 x130
 Photo Craft Imaging                       .     3550 Arapahoe Ave. #6
 http://www.pcraft.com ..... .  .    .       Boulder, CO 80303, U.S.A.






Darrell Brogdon
darrell@xxxxxxxxxxx
http://darrell.brogdon.net

*************************************
** Prepare for PHP Certication!    **
** http://phpflashcards.com        **
*************************************



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux