I am reading some PHP code that I could not understand:
class foo {
function select($p1, $dbh=null) {
if ( is_null($dbh) )
$dbh = $this->dbh
$this->dbh
is.$dbh
is a property of the current object. $this
is use to access to the members of the current object.$this->dbh
can be used in any function inside the class.