开发者

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

开发者 https://www.devze.com 2023-03-09 03:40 出处:网络
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 implementatio

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

精彩评论

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