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

From: Date: Fri, 11 Feb 2005 17:30:53 +0000
Subject: Re: Creating a varable with a name held in a string
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-208544@lists.php.net to get a copy of this message
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

« previous php.general (#208544) next »