public function getConstant($name)
    {
        $constants = $this->getConstants();
        $value = array_key_exists($name, $constants);
        if ($value) {
            $value = $constants[$name];
        }
        return $value;
    }
public function getConstant($name)
    {
        $constants = $this->getConstants();
        $value = array_key_exists($name, $constants);
        if ($value) {
            $value = $constants[$name];
        }
        return $value;
    }
public function getConstant ( $ name ) { $ constants = $ this -> getConstants ( ) ; $ value = array_key_exists ( $ name , $ constants ) ; if ( $ value ) { $ value = $ constants [ $ name ] ; } return $ value ; }
Gets defined constant.

@param string $name Name of the constant

@return mixed constant value or FALSE if constant does not exist
Gets defined constant .