NYCPHP Meetup

NYPHP.org

[nycphp-talk] Memory usage at runtime

Ken Robinson kenrbnsn at rbnsn.com
Fri May 19 13:34:47 EDT 2006


At 01:28 PM 5/19/2006, Nunez, Eddy wrote:
>Content-class: urn:content-classes:message
>Content-Type: multipart/alternative;
>         boundary="----_=_NextPart_001_01C67B69.96A4ADFF"
>
>Greets fellow PHPers,
>           This is something I've been looking around for but bit 
> hard pressed to find something on the net.  Anyone know a function 
> call or method to determine how much memory in bytes your script 
> variables(any type) are currently using?

The function memory_get_usage() is what you're looking for. 
<http://www.php.net/memory_get_usage>

Ken




More information about the talk mailing list