Saturday, 7 September 2013

Please help me understand why $$ isn't working for session in php?

Please help me understand why $$ isn't working for session in php?

I am trying to understand the double variables of php. Let's say I have this
$req = '_SESSION';
So, shouldn't $$req be equivalent to $_SESSION? But I am getting an error
saying undefined variable '_SESSION'. Please explain this to me.

No comments:

Post a Comment