Posted by Jon Slaughter on 06/02/07 00:52
If I do something like
$r = &$something;
$r = array();
does it refer to $something or does the reference get remove first? if
so(which it seems it is) can I for $r always ot point to $something?
Essentially what I'm trying to do is simplfy the a variable name but I need
to create it if it doesn't exist after the reference.
What I have is a class that contains a variable that points to a session
variable and I want to use that class variable throughout the class as a
reference to the session variable but I have to create the session variable
if it does exist in some cases which seems to be removing the reference and
creating a new variable instead.
Thanks,
Jon
Navigation:
[Reply to this message]
|