News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Nikita Popov's Blog:
Understanding PHP's internal array implementation (Part 4)
March 29, 2012 @ 09:16:02

Nikita Popov has posted the fourth part of the "PHP's Source Code for PHP Developers" series he and Anthony Ferrara have been posting. In this latest article in the series, Nikita looks specifically at PHP's array implementation and how it's handed "behind the scenes".

Welcome back to the fourth part of the "PHP's Source Code for PHP Developers" series, in which we'll cover how PHP arrays are internally represented and used throughout the code base.

He starts with an obvious foundation: "everything's a hash table" (even properties, classes and yes, arrays). He describes what a hash table is and talks about two of the most commonly used versions of it in the PHP source - HashTable and Bucket. He gets into their usage a bit and compares this to the corresponding PHP code that uses a standard array.

0 comments voice your opinion now!
source code developers language internal array hashtable bucket


blog comments powered by Disqus

Similar Posts

Sean Coates\' Blog: +1 for Shalosh Nekudotayim (Namespaces in PHP)

Ivo Jansch's Blog: PHP as a template language

ProDevTips: Sorting 2D-arrays in PHP - anectodes and reflections

DevShed: Fetching Search Results as Serialized Arrays with Yahoo Web Services and PHP 5

SitePoint PHP Blog: PHP Extension Development with PHP-CPP: Object Oriented Code


Community Events





Don't see your event here?
Let us know!


language list framework threedevsandamaybe opinion introduction refactor community release series code experience unittest interview install testing podcast laravel configure developer

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework