Re: array size in bytes

From: Date: Mon, 02 Oct 2006 23:09:31 +0000
Subject: Re: array size in bytes
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-242519@lists.php.net to get a copy of this message
How about saving the array as a file and then do a filesize()?
Wouldn't this work? $arraySize = strlen( implode( '', $array )); Though, additional work would need to be done for nested arrays. thnx, Chris

« previous php.general (#242519) next »