Jan Walraven
DevOps



Categories:
  • Arduino (2)
  • CSS (3)
  • Docker (10)
  • ESXi (1)
  • Git (4)
  • Google Cloud (2)
  • Javascript (6)
  • Linux (31)
  • Mac (6)
  • Magento (4)
  • Mysql (13)
  • PHP (9)
  • Zend framework 2 (9)
  • Posted on March 8, 2012

    is_a — Checks if the object is of this class or has this class as one of its parents

    
    bool is_a ( object $object , string $class_name [, bool $allow_string = FALSE ] )
    

    Example

    
    class exampleClass{
            public function foo(){
                    echo "FOO";
            }
    }
     
    $ex = new example();
    if (!is_a($ex,"example")){
            echo "var ex is not a example Class";
    }