note 13591 added to function.array-push.php
| From: | jrz at rackmount dot org | Date: | Fri, 22 Jun 2001 19:59:37 +0000 |
| Subject: | note 13591 added to function.array-push.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14573@lists.php.net to get a copy of this message | ||
I got around not being able to pass MDA's with array_push by faking it. I simply do
<?
$myarray[foo] = "test1";
$myarray[foo] = "$myarray[foo] test2";
$myarray[foo] = "$myarray[foo] test3";
print "$myarray[foo]\n";
?>
this will yield,
$ php -qe arraytest.php
test1 test2 test3
$
http://www.php.net/manual/en/function.array-push.php