Simply Program

Simply programming - It’s a life style
Filed under Programming, PHP

When you start creating advanced applications that require different types of data that may be defined by a developer using your system you come across a very interesting issue.

Dynamic Variables...

They are quite easy to master, just look at the below example.

CODE:
  1. $foo = 'howdy';
  2. $$foo = 'not howdy';
  3.  
  4. echo $$foo; //should return not howdy

Learn more by going here:

http://www.php.net/manual/en/language.variables.variable.php

Posted by sp on Thursday, July 17th, 2008


You can follow any responses to this entry through the magic of "RSS 2.0" and leave a trackback from your own site.