Forum Moderators: coopster

Message Too Old, No Replies

array and

         

kumarsena

5:36 pm on Mar 11, 2004 (gmt 0)

10+ Year Member



hey,

anyone know how to control which element of an array is printed, say from 1-4 then 5-9 etc.

thanks

kumar

coopster

5:57 pm on Mar 11, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Arrays [php.net] are accessed by index. You could use a for [php.net] control structure, or any number of array functions [php.net] to get the desired results.