Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Differences between Simple Variables and Variable Variables
What is the difference between $message and $$message in PHP?
✍: FYIcenter
$message is a simple variable with a fixed name which is called "message".
$$message is a variable variable with a variable name which is stored in another variable called $message.
If $message contains "user", $$message is the same as $user. For example, this code will produce "bob" and "bob":
<?php $holder = 'user'; $$holder = 'bob'; echo $$holder; echo $user; ?>
2007-02-27, 5474👍, 0💬
Popular Posts:
How To Assign Debug Privileges to a User? - Oracle DBA FAQ - Introduction to Oracle SQL Developer In...
How To Enter Microseconds in SQL Statements? - MySQL FAQs - Introduction to SQL Date and Time Handli...
From performance point of view how do they rate ? Repeater is fastest followed by Datalist and final...
Can you tell me how to check whether a linked list is circular? Create two pointers, and set both to...
What are urlencode() and urldecode() functions in PHP? string urlencode(str) - Returns the URL encod...