Jalpesh Jalpesh - 1 year ago 83
PHP Question

What is the difference between $a and $$a in php?

Possible Duplicate:

What does $$ mean in PHP?

I am new to PHP and I don't know what the difference between

Answer Source

If $a = 'b' then $$a is $b.

This is a variable variable. They are evil. Use arrays instead (which do the same thing, but more maintainably and with the ability to use array functions on them).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download