Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
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, 5218👍, 0💬
Popular Posts:
What are the two fundamental objects in ADO.NET ? Datareader and Dataset are the two fundamental obj...
What is CMM and different levels? explain? The Capability Maturity Model (CMM) is a process capabili...
How do we enable SQL Cache Dependency in ASP.NET 2.0? Below are the broader steps to enable a SQL Ca...
How To Write a Minimum Atom 1.0 Feed File? - RSS FAQs - Atom Feed Introduction and File Generation I...
How do you locate the first X in a string txt? A) txt.find('X'); B) txt.locate('X'); C) txt.indexOf(...