i am using codeignighter.
I have a class that has some variables i need to use somewhere else.
for example:
class details{
public $username;
public $current_uID;
public $member_status;
public function __construct(){
$this->username = 'username';
$this->current_uID = 21;
$this->member_status = 1;
}
}
Now my question is how do i access the those variable – and if i do will they have the values that was defined in the construct ?
1 Answer