Your Ad Here

Saturday, November 7, 2009

What is the difference between $message and $$message?

$message is a simple variable whereas $$message is a reference variable.
Example:
$user = 'bob'
is equivalent to
$holder = 'user';
$$holder = 'bob';

No comments:

Post a Comment

Your Ad Here