Home > PHP > Function > Classes/Objects > interface_exists()

interface_exists()

interface_exists - Checks if the interface has been defined

Syntax

bool interface_exists (string $interface_name, bool $autoload)

Arguments

  • interface_name - The interface name
  • autoload - Whether to call __autoloador not by default.

Description

Checks if the given interface has been defined.

Version

PHP 5.0.2

Return value

Returns TRUE if the interface given by interface_name has been defined, FALSE otherwise.