Array Push question
| From: | John Comerford | Date: | Thu, 12 Jul 2007 08:45:36 +0000 |
| Subject: | Array Push question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-258673@lists.php.net to get a copy of this message | ||
Hi Folks,
Is there a better way of doing the following:
$Rows[] = array();
$currentRow = count($Rows) - 1;
$Rows[$currentRow]['test'] = "this is a test";
Specifically I am wonder if I can avoid having to use 'count'.
TIA,
JC