Monday, November 23, 2009

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

They are both variables. But $message is a variable with a fixed name. $$message is a
variable who's name is stored in $message.

Example:
$user = 'bob'
is equivalent to
$holder = 'user';
$$holder = 'bob';

No comments:

Post a Comment

I just got my #domain @BigRock. Get upto 25% off with my personalized coupon link Get upto 25% off