On Tue, 2007-04-17 at 13:14 +0100, Stut wrote:
> Tim wrote:
> > <snip>
> >>> The count is maintained internally as items are 
> >> added/removed, and it 
> >>> is an O(1) operation for PHP to "count" the array, as it 
> >> already knows 
> >>> the answer and just returns it.
> > </snip>
> > 
> > Hi nothing to do with the actual topic, i am just wondering how you get this
> > "internals" information you all seem to know so much about, it is very
> > interesting and i'd like to add it to some of my "late night" reading if
> > possible :)
> 
> Just guessing, but I'd say probably the source code. That's where most 
> of the internals of PHP are documented. ;)

Several sources... the C source code as Stut has presumed :) Also from
reading the PHP-DEV list where the source is often discussed.
Additionally, some of it is from my early Computer Science background
where there's a large focus on data structures and algorithms.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to