Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- reference assignment
- Jon Slaughter
June 2, 2007, 12:52 am
rate this thread
$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.
Re: reference assignment
The reference is removed first. As in all assignments in PHP, the
current assignment replaces the previous one.n
Remove the "x" from my email address
JDS Computer Training Corp.