| 
 Posted by Jerry Stuckle on 06/02/07 01:55 
Jon Slaughter wrote: 
> 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? 
> 
 
The reference is removed first.  As in all assignments in PHP, the  
current assignment replaces the previous one.n 
 
> 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  
>  
>  
 
 
--  
================== 
Remove the "x" from my email address 
Jerry Stuckle 
JDS Computer Training Corp. 
jstucklex@attglobal.net 
==================
 
  
Navigation:
[Reply to this message] 
 |