start_memory of memory_get_usage = $ ();
$ foo = "s Some variable";
echo of memory_get_usage () - $ start_memory;
that can get all types of variable size
strlen ($ foo) This may retrieve the current string is the size in bytes divided by 8 bit size
php get method variables share memory size
Guess you like
Origin www.cnblogs.com/ysbl/p/12590376.html
Ranking