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
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
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
-
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
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:
for ( $i = 0; $i < sizeof($logicalDrive); $i++) {
echo "$arrLogDrive[$i]\n";
}
for (reset($logicalDrive); $i = key($logicalDrive)
5 matches
Mail list logo