PHP 手冊
前一頁 |  | 下一頁

# class_implements

(PHP 5)

class_implements -- Return the interfaces which are implemented by the given class

## Description

array class_implements ( object class )

This function returns an array with the name of the interfaces that the given class implements.

範例 1. class_implements() example

`<?php interface foo { } class bar implements foo {} print_r(class_implements(new bar)); ?>`

The above example will output:

    Array
    (
        [foo] => foo
    )

前一頁 | 內容 | 下一頁
SimpleXMLIterator::valid | 上一層 | class_parents