Re: Creating a varable with a name held in a string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ben Edwards wrote:
> From the manual
>
> "For each key/value pair it will create a variable in the current symbol
> table".
>
> What exactly is a simble table?

Internally, PHP stores variables in an array.

That array is sometimes referred to as a "symbol table" because each
symbol (variable name) is listed in the table with its value.

var_dump($GLOBALS);

is pretty much "the symbol table" for all intents and purposes to a PHP
script.

Down in the guts of PHP source, it's probably just a tad bit more
complicated than that :-)

For starters, do a little research on "reference counting" if you want to
make your head spin a bit.

-- 
Like Music?
http://l-i-e.com/artists.htm

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux