here's the code!.Not working,Please help.
class user{
var idgen;
function uid(){
    //return uniqid (rand(), true);
    return "123";
    }
function gen() {
    $this->idgen=$this->uid();
            //$this->idgen=udi();//even this dint work
    }
function pint() {
    echo "The id is :".$this->idgen;
    }
}
$use= new user();
$use->gen();
$use->pint();
 
     
     
     
     
     
    