Re: [PHP] array size in bytes

2006-10-02 Thread Chris Boget
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] array size in bytes

2006-10-02 Thread tedd
At 4:18 PM -0500 10/2/06, Richard Lynch wrote: On Mon, October 2, 2006 3:07 am, Roman Rumisek wrote: Exists in PHP function returning array size in bytes ? (For saving array into shared memory without serialize.) No. And you could maybe write one, if it was all strings in the array, but you

Re: [PHP] array size in bytes

2006-10-02 Thread Richard Lynch
On Mon, October 2, 2006 3:07 am, Roman Rumisek wrote: > Exists in PHP function returning array size in bytes ? > (For saving array into shared memory without serialize.) No. And you could maybe write one, if it was all strings in the array, but you're gonna be screwed when PHP 6 with Unicode come

[PHP] array size in bytes

2006-10-02 Thread Roman Rumisek
Hi, Exists in PHP function returning array size in bytes ? (For saving array into shared memory without serialize.) Thnx. Roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array size

2001-01-26 Thread Christian Reiniger
On Friday 26 January 2001 22:35, Giancarlo wrote: > > how many elements i can insert in an array? > thank you! I'd say up to 2^31 or until your memory is full (which is likely to occur earlier) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Even idiots can handle computers, a

[PHP] array size

2001-01-26 Thread Giancarlo
how many elements i can insert in an array? thank you!