Thread
:
array size in bytes
View Single Post
#
4
(
permalink
)
10-03-2006
Chris Boget
Posts: n/a
Re: [PHP] array size in bytes
> 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
Chris Boget