note 98597 rejected from function.array-push by danbrown

From: Date: Fri, 25 Jun 2010 13:29:48 +0000
Subject: note 98597 rejected from function.array-push by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-170402@lists.php.net to get a copy of this message
Note Submitter: lijie2008cc at 163 dot com ---- <?php echo (memory_get_usage()/1000).'k<br>'; $arr = array(); for ($i=0; $i<2000; $i++){ array_push($arr, '1'); } unset($arr); echo (memory_get_usage()/1000).'k'; ?> output: 56.568k 121.712k why is there more than 60k memory used?

« previous php.notes (#170402) next »