Re: [PHP] Finding the sizeof a variable....

2004-06-02 Thread Marek Kilimajer
Matthew A. Blasinski wrote: Hi, I'm wondering if there's something similar to the C sizeof operator in PHP? I would like to find out how much space in memory a variable is actually using (and possibly adjust the max memory per script accordingly). No, sizeof() http://us3.php.net/sizeof is not w

Re: [PHP] Finding the sizeof a variable....

2004-06-02 Thread Daniel Clark
There is memory_get_usage() but it returns the amount of memory allocated to PHP. http://us3.php.net/manual/en/function.memory-get-usage.php > I'm wondering if there's something similar to the C sizeof operator in > PHP? I would like to find out how much space in memory a variable is > actually

[PHP] Finding the sizeof a variable....

2004-06-02 Thread Matthew A. Blasinski
Hi, I'm wondering if there's something similar to the C sizeof operator in PHP? I would like to find out how much space in memory a variable is actually using (and possibly adjust the max memory per script accordingly). No, sizeof() http://us3.php.net/sizeof is not what I want :-( Thanks! Matt