NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Code completion and assigned vars


Joined: 14 Sep 2003
Posts: 2
Reply with quote
Hi all,
I have the following code in one of my script:
Code:
$_SESSION['_user'] = & new _user();
....
$_user = &$_SESSION['_user'];


Is there a way to tell PHPEd that $_user is an istance of the _user class?
Thanks.
View user's profileFind all posts by gianniSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7881
Reply with quote
only if you do it differently, like below:

Code:
$_user = & new _user();
....
$_SESSION['_user'] = &$_user;
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Code completion and assigned vars
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic