> -Original Message-
> From: CPT John W. Holmes [mailto:[EMAIL PROTECTED]
> Sent: 31 July 2003 15:54
> you basically
> have this:
>
> list($k,$v,$key,$value) = array(1=>'abc', 'value'=>'abc', 0=>'a',
> 'key'=>'a');
>
> So, how this works is that list starts with $value. $value is
> at
From: "Ford, Mike [LSS]" <[EMAIL PROTECTED]>
> From: John W. Holmes [mailto:[EMAIL PROTECTED]
> > The four element array will be
> > 1 => 'one'
> > value => 'one'
> > 0 => 0
> > key => 0
>
> OK, some more red pen coming along
Since we're whipping them out (red pens that is)
> The four-element
> -Original Message-
> From: John W. Holmes [mailto:[EMAIL PROTECTED]
> Sent: 29 July 2003 23:05
>
> Curt Zirzow wrote:
> > Ok... I'm getting the red pen out now :)
> [snip]
> > the each() function returns a one element array that the current
> > (internal) array pointer is pointing to an
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> * Thus wrote John W. Holmes ([EMAIL PROTECTED]):
> >
[snip]
> don't but all that matters to most is: it works.. and foreach has
> taken over its job anyway.
Just a small comment... foreach() is not equal to a while/each
Curt Zirzow wrote:
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]):
think it was made to be intentionally confusing. For what reason, I
don't but all that matters to most is: it works.. and foreach has
I cant type nor proof read today... at least before hitting send.
I think I understood you.
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]):
> think it was made to be intentionally confusing. For what reason, I
> don't but all that matters to most is: it works.. and foreach has
I cant type nor proof read today... at least before hitting send.
Curt
--
"I used to think I was indecisiv
* Thus wrote John W. Holmes ([EMAIL PROTECTED]):
>
> and apparently list() will ignore the keys that do not have numerical
> indexes. The manual says numerical indexes are required, but not what
> happens when they are encounted. It looks like they are just ignored.
>
> list($k,$v) = array('foo
Curt Zirzow wrote:
Ok... I'm getting the red pen out now :)
[snip]
the each() function returns a one element array that the current
(internal) array pointer is pointing to and will return false if at
the end of the array.
It actually returns a four element array (as per the manual).
the list() fu
Ok... I'm getting the red pen out now :)
* Thus wrote CPT John W. Holmes ([EMAIL PROTECTED]):
> > Hello everyone,
> > Am new to php and have run into a problem while reading my book... can
> anybody tell me what does this mean:
>
> Hi... let's see who gets this one first... :)
>
> > foreach($in
> Hello everyone,
> Am new to php and have run into a problem while reading my book... can
anybody tell me what does this mean:
Hi... let's see who gets this one first... :)
> foreach($invoice as $number => $pppno)
$invoice is an array. foreach() is going to loop through that array one
element a
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]):
>
> Hello everyone,
> Am new to php and have run into a problem while reading my book... can anybody tell
> me what does this mean:
>
> foreach($invoice as $number => $pppno)
this rather straight forward:
foreach([array] as [key] => [val] )
of $state.
Hope this helps.
Robbert van Andel
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 1:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP] learning php - problem already
Hello everyone,
Am new to php and have run into a problem w
I do understand for loops and while loops but this is a bit
confusing...do you haev any links I can read up on these?
http://www.php.net/manual/en/ has all the info you need
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello everyone,
Am new to php and have run into a problem while reading my book... can anybody tell me
what does this mean:
foreach($invoice as $number => $pppno)
and also this:
while(list($k,$v,) = each($a))
I do understand for loops and while loops but this is a bit confusing...do you haev
14 matches
Mail list logo