How to determine the memory footprint (size) of a variable?

后端 未结 11 2400
有刺的猬
有刺的猬 2020-11-28 19:30

Is there a function in PHP (or a PHP extension) to find out how much memory a given variable uses? sizeof just tells me the number of elements/properties.

11条回答
提交回复
热议问题