Apache Today [Your Apache News Source]
Your Daily Source for Apache News and Information  
Breaking News Preferences Contribute Triggers Link Us Search About
DevShed: Using Variable Variables in PHP
(Feb 27th, 18:42:29 )

"Quite possibly one of PHP's least utilized yet most valuable features is its support for Variable Variables. ..."

"A variable variable is, in short, a method of using the value of one variable to call the name of another. For instance, if I had a variable $x with the value of "Eric", I could set a variable $Eric to "Seufert" by simply writing $$x = "Seufert". This process calls the value of $x and then creates a variable out of it. ..."

"... Variable Variables make working with forms and other such user-input easier because they allow you to centralize all the available options. ..."

Complete Story

Related Stories:
PHPeverywhere: Comparing PHP with Perl for Dynamic Web Pages(Jan 05, 2001)
O'Reilly Network: PHP With HTML Forms(Dec 04, 2000)
O'Reilly Apache DevCenter: LAMP Lighter: The Apache Toolbox (Nov 18, 2000)
PHPBuilder: PHPLIB and multiple databases(Nov 13, 2000)
PHPBuilder: Checking Data(Nov 12, 2000)
PHPBuilder: Mass Customization(Nov 11, 2000)
OSFAQ: How to create a database driven website (PHP/MYSQL)(Nov 05, 2000)
PHPBuilder: PHP for PDF(Oct 30, 2000)
PHPBuilder: Transforming XML with XSL using Sablotron(Oct 29, 2000)
PHPBuilder: Storing Checkbox Data In Your Database(Oct 20, 2000)
PHPBuilder: Variable Variables, PHP, and You(Oct 01, 2000)


Printed from Apache Today (https://apachetoday.com).
https://apachetoday.com/news_story.php3?ltsn=2001-02-27-003-06-PS-PH-DB

About Triggers Newsletters Media Kit Security Triggers Login


internet.com
Privacy Policy
All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux 2.2.12, Apache 1.3.9. and PHP 3.14
© Copyright 2000, internet.com Corp. All Rights Reserved.Legal Notices.