note 40073 deleted from function.sizeof by colder

From: Date: Tue, 16 Jan 2007 14:20:09 +0000
Subject: note 40073 deleted from function.sizeof by colder
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-121796@lists.php.net to get a copy of this message
Note Submitter: jdittmer at ppp0 dot net ---- This gets pretty near the size of an array: strlen(implode('', array_values($array) + array_keys($array)). The internal size is perhaps more like: strlen(serialize($array).

« previous php.notes (#121796) next »