note 10513 added to array_keys
| From: | iamtheghost at hotmail dot com | Date: | Mon, 08 Jan 2001 19:06:38 +0000 |
| Subject: | note 10513 added to array_keys | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9481@lists.php.net to get a copy of this message | ||
In the example above, the spacing is bad and leads to confusion...
the line '$t[] = $k;' should be spaced the same as the if statement and the line
'return $t' should be spaced the same as the while statement. Makes it a lot easier to
read...
-Reinard
http://www.php.net/manual/function.array-keys.php