how to define var in constructor php oops code example Example: php __construct public function __construct(){}