Jan Walraven
DevOps



Categories:
  • Arduino (2)
  • CSS (3)
  • Docker (11)
  • ESXi (1)
  • Git (4)
  • Google Cloud (3)
  • Javascript (6)
  • Kubernetes (4)
  • Linux (36)
  • Mac (7)
  • Magento (4)
  • Mysql (14)
  • 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";
    }