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, 5958👍, 0💬
Popular Posts:
How can you determine the size of an allocated portion of memory? You can't, really. free() can , bu...
.NET INTERVIEW QUESTIONS - How can you avoid deadlock in threading? A good and careful planning can ...
Regarding C Coding Given: Line in file Contents 30 int * someIDs, theFirst, *r; 110 someIDs =GetSome...
What are urlencode() and urldecode() functions in PHP? string urlencode(str) - Returns the URL encod...
Assuming that the structure of a table shows two columns like this: --------+------------+-- ----+---...