RE: [PHP] Going through 2 arrays at once

2006-05-23 Thread Pavleck, Jeremy D.
56 PM To: Pavleck, Jeremy D. Cc: PHP LIST Subject: Re: [PHP] Going through 2 arrays at once Pavleck, Jeremy D. wrote: > how do I go through 2 arrays at > once with different keys? > > for ( $i = 0; $i < sizeof($logicalDrive); $i++) { > echo "$arrLogDrive[$i

Re: [PHP] Going through 2 arrays at once

2006-05-23 Thread David Tulloh
Pavleck, Jeremy D. wrote: > how do I go through 2 arrays at > once with different keys? > > for ( $i = 0; $i < sizeof($logicalDrive); $i++) { > echo "$arrLogDrive[$i]\n"; > } > > for (reset($logicalDrive); $i = key($logicalDrive); next($logicalDrive)) > { > echo "$i: $logical

Re: [PHP] Going through 2 arrays at once

2006-05-23 Thread tedd
At 5:33 PM -0500 5/23/06, Pavleck, Jeremy D. wrote: Greetings, PHP Rookie here with a quick question - how do I go through 2 arrays at once with different keys? I'd like to combine these 2 arrays into one: Jeremy: array_merge Review this: http://www.weberdev.com/array_merge hth's tedd -

Re: [PHP] Going through 2 arrays at once

2006-05-23 Thread Jochem Maas
Pavleck, Jeremy D. wrote: Greetings, PHP Rookie that explains why you may not have bumped into 'foreach' yet :-) ... here with a quick question - how do I go through 2 arrays at once with different keys? I'd like to combine these 2 arrays into one: for ( $i = 0; $i < sizeof($logicalDr