开发者

How does PHP implements its all fit container `array`?

If it were c++,this can be a开发者_开发技巧chieved by template,but as we know PHP is written in c,how's this kind of data struct implemented without template?


It's a hash table. For the implementation details, see

  • http://svn.php.net/viewvc/php/php-src/trunk/Zend/zend_hash.c?view=markup
  • http://svn.php.net/viewvc/php/php-src/trunk/Zend/zend_hash.h?view=markup

or in general

  • http://svn.php.net/viewvc/php/php-src/trunk/Zend/
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜