If $a = 'foo'
and $$a = nothing (i.e. no value assigned to $foo) you will get an error if
you tried to use this to do something else.

On Sun, Mar 6, 2011 at 3:21 PM, tedd <tedd.sperl...@gmail.com> wrote:

> At 6:42 PM +0530 3/6/11, Ashim Kapoor wrote:
>
>> Dear All,
>>
>> I was reading the php manual for session_register, and I found the
>> following
>> line there : -
>>
>>
>> $_SESSION[$var] = $$var;
>>
>> Why do I need $$ there ? Can someone explain?
>>
>> Thank you,
>> Ashim
>>
>
> Ashim:
>
> You don't need to user session_register().
>
> Cheers,
>
> tedd
>
>
> --
> -------
> http://sperling.com/
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Mujtaba

Reply via email to