[PHP] Re: Array sizes?

2006-02-08 Thread Barry
Anders Norrbring wrote: Maybe I'm just blind, but I can't find any way to count an array size in bytes? I have a quite big array with multiple data formats in it, and I would like to know how big it is in bytes... I don't think a function exists, but i would probably use (for benchmarking)

Re: [PHP] Re: Array sizes?

2006-02-08 Thread Paul Novitski
Anders Norrbring wrote: Maybe I'm just blind, but I can't find any way to count an array size in bytes? I have a quite big array with multiple data formats in it, and I would like to know how big it is in bytes... At 01:05 AM 2/8/2006, Barry wrote: I don't think a function exists, but i

Re: [PHP] Re: Array sizes?

2006-02-08 Thread Barry
Paul Novitski wrote: Anders Norrbring wrote: Maybe I'm just blind, but I can't find any way to count an array size in bytes? I have a quite big array with multiple data formats in it, and I would like to know how big it is in bytes... At 01:05 AM 2/8/2006, Barry wrote: I don't think a

Re: [PHP] Re: Array sizes?

2006-02-08 Thread Rory Browne
At 01:05 AM 2/8/2006, Barry wrote: I don't think a function exists, but i would probably use (for benchmarking) a recursive foreach in combination with strlen. And add it all up. (This is probably some work for the PC so that's why benchmarking) It would be interesting to know whether that

Re: [PHP] Re: Array sizes?

2006-02-08 Thread Anders Norrbring
Rory Browne skrev: At 01:05 AM 2/8/2006, Barry wrote: I don't think a function exists, but i would probably use (for benchmarking) a recursive foreach in combination with strlen. And add it all up. (This is probably some work for the PC so that's why benchmarking) It would be interesting to