note 37839 modified in function.array-push by vrana

From: Date: Tue, 17 Aug 2004 14:48:14 +0000
Subject: note 37839 modified in function.array-push by vrana
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-79673@lists.php.net to get a copy of this message
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'; ?> --was-- If you're only pushing one element, $array[] seems to be a bit faster $array = array(); array_push ($array, 'foo'); VS $array[] = 'foo'; http://php.net/manual/en/function.array-push.php

« previous php.notes (#79673) next »