PHP Feeds -

Apache | UTF-8 | ZEND |

Nikic+#039;s Blog: How big are PHP arrays (and values) really? (Hint: BIG!) Nikic's Blog: How big are PHP arrays (and values) really? (Hint: BIG!)

- (phpdeveloper) - 5 months, 1 weeks ago...

In this recent blog post nikic takes an in-depth look at how large PHP arrays really are - how memory is used in the creation and management of these handy PHP variable types. In this post I want to investigate the memory usage of PHP arrays (and values in general) using the following script as an example, which creates 100000 unique integer array elements and measures the resulting memory usage. [...] How much would you expect it to be? [...] Now try and run the above code. You can do it...

see complete article.

Similar recent news articles...

Older news

Hash of arrays Hash of arrays - (bytes.com)

Hot Topics