note 37839 deleted from function.array-push by betz
| From: | betz@php.net | Date: | Mon, 25 Jul 2005 17:11:06 +0000 |
| Subject: | note 37839 deleted from function.array-push by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-92423@lists.php.net to get a copy of this message | ||
Note Submitter: daijoubuNOSP at Mvideotron dot ca
----
If you're only pushing one element, $array[] seems to be a bit faster
<?php
$array = array();
array_push ($array, 'foo');
?>
VS
<?php
$array[] = 'foo';
?>