View Single Post

  #4 (permalink)  
Old 10-03-2006
Chris Boget
 
Posts: n/a
Default 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
Reply With Quote