Small list() inquiry
| From: | Brian Clark | Date: | Tue, 18 Jul 2000 05:24:28 +0000 |
| Subject: | Small list() inquiry | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-7035@lists.php.net to get a copy of this message | ||
while(list(,$val) = each($array))
{
print $val;} As far as leaving out the index/key in list(), assuming you just want the value: I'm assuming that's a feature -- but will there ever come a time where the above will produce an error? (In so far as the language itself; I'm not talking about my code.) Petty, I know. I'm just curious.. Brian