what does controlling dollar pointer after $this-> php mean?
i'm small confused php syntax i've across. here an example:
$k = $this->_tbl_key;
if( $this->$k)
{
$ret = $this->_db->updateobject( $this->_tbl, $this, $this->_tbl_key, $updatenulls );
}
else
{
$ret = $this->_db->insertobject( $this->_tbl, $this, $this->_tbl_key );
}
my doubt fundamentally does $this->$k mean? i figured competence meant member non-static goes name whatever $this->_tbl_key, nonetheless work? illusory supplement member variables category during run-time?
Comments
Post a Comment