Reason for asking: I am utilizing memcached for cache storage in
Another easy way pute content of array to file and then check file size.
$str = print_r($array, true); file_put_contents('data.txt', $str); $size = filesize('data.txt');