I just ran into a problem I've never been faced with before with PHP:
How do I determine how much memory a variable is taking up? Obviously. a string takes up strlen() or strlen() + 1 bytes of memory for the data( depending on whether or not PHP internally adds a null bytes to signifiy the end of the string), but how about an array? A multidimensional array?
Is there a function that'll return this value? I though sizeof() would do it (like C), but alas, no good.
Thanks!
-Rich