All pastes #122877 Raw Edit

Something

public text v1 · immutable
·published 2006-08-09 00:20 UTC
rendered paste body
<?php
 
class myClass {
 
        private $myVar=false;
 
        function myClass() {		
                if($this->getMyVar() === false) {
                        echo "true\n";
                }
                echo ($this->getMyVar());
                var_dump($this->myVar);
 
        }
 
        public function getMyVar() {
                return $this->myVar;
        }
}

$a = new MyClass();
 
?>