why doesn't list() handle associative arrays?
| From: | Cynic | Date: | Wed, 07 Feb 2001 01:50:54 +0000 |
| Subject: | why doesn't list() handle associative arrays? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45909@lists.php.net to get a copy of this message | ||
$a['x'] = 'one' ;
$a['y'] = 'two' ;
$a['z'] = 'three' ;
list( $x , $y , $z ) = $a ;
Warning: Undefined offset: 2 in ...
Warning: Undefined offset: 1 in ...
Warning: Undefined offset: 0 in ...
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz