PHP: interface_exists - Manual in Deutsh
PHP: interface_exists - Manual in French
PHP: interface_exists - Manual in Polish

You Are At PHP: interface_exists - Manual Area


recent searches:
include functions , variable functions , post functions...




If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.

PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.

PHP Manual
PrevNext

interface_exists

(PHP 5 >= 5.0.2)

interface_exists -- Checks if the interface has been defined

Description

bool interface_exists ( string interface_name [, bool autoload] )

Checks if the given interface has been defined.

Parameters

interface_name

The interface name

autoload

Wether to call __autoload or not by default

Return Values

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

Examples

Example 1. interface_exists() example

<?php
// Check the interface exists before trying to use it
if (interface_exists('MyInterface')) {
    class
MyClass implements MyInterface
    
{
        
// Methods
    
}
}

?>

See Also

class_exists()

szkolenia dla księgowych kursy księgowe księgowość
Solidnie i tanio przeprowadzki kraków transport mebli, profesjonalnie
kalkulator kredytu hipotecznego
Prawo jazdy Szczecin
Oryginalne perfumy w promocyjnych cenach

Another Useful functions:


zend-api.zval-internal-ptr-dtor | zend-api.zval-internal-dtor | zend-api.zend-register-internal-module | zend-api.zend-register-internal-interface | zend-api.zend-register-internal-class | zend-api.zend-register-internal-class-ex | zend-api.zend-register-interfaces | zend-api.zend-hash-internal-pointer-reset | zend-api.zend-hash-internal-pointer-reset-ex | zend-api.zend-hash-internal-pointer-end | zend-api.zend-hash-internal-pointer-end-ex | zend-api.zend-do-inherit-interfaces | zend-api.zend-do-implement-interface | zend-api.tsrm-set-interpreter-context | zend-api.tsrm-new-interpreter-context | zend-api.tsrm-free-interpreter-context | zend-api.execute-internal | ref.printer | language.oop5.interfaces | internals.pdo.testing | internals.pdo.prerequisites | internals.pdo.preparation | internals.pdo.pdo_stmt_t | internals.pdo.pdo-dbh-t | internals.pdo.packaging | internals.pdo.implementing | internals.pdo | internals.pdo.error-handling | internals.pdo.constants | internals.pdo.building | internals | functions.internal | function.printer-write | function.printer-start-page | function.printer-start-doc | function.printer-set-option | function.printer-select-pen | function.printer-select-font | function.printer-select-brush | function.printer-open | function.printer-logical-fontheight | function.printer-list | function.printer-get-option | function.printer-end-page | function.printer-end-doc | function.printer-draw-text | function.printer-draw-roundrect | function.printer-draw-rectangle | function.printer-draw-pie | function.printer-draw-line | function.printer-draw-elipse | function.printer-draw-chord | function.printer-draw-bmp | function.printer-delete-pen | function.printer-delete-font | function.printer-delete-dc | function.printer-delete-brush | function.printer-create-pen | function.printer-create-font | function.printer-create-dc | function.printer-create-brush | function.printer-close | function.printer-abort | function.ociinternaldebug | function.oci-internal-debug | function.ncurses-mouseinterval | function.mb-internal-encoding | function.libxml-use-internal-errors | function.interface-exists | function.imageinterlace | function.get-declared-interfaces | function.domdocumenttype-internal-subset | function.array-uintersect | function.array-uintersect-uassoc | function.array-uintersect-assoc | function.array-intersect | function.array-intersect-ukey | function.array-intersect-uassoc | function.array-intersect-key | function.array-intersect-assoc |


PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.