OK so I've done this hundreds of times, but this time I cannot get it to
work.

Please cast an eye over the following code and output and tell me why $k and
$v are not being set:


Code:
-----------------------------

$ser = array( 'first', 'second', 'third', 'fourth', 'fifth' );

reset($ser);
while ( list($key, $val) = each($ser) );
{
    echo "\$key = $key, \$val = $val<br>";
}

-----------------------------


Output:
------------------------------

$key = , $val =

------------------------------

I tried giving the $ser array numeric keys and string keys, both made no
difference.


thanks,

- Kev


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to