|
Home
iRate! IceMelon IM Tutorials Headlines CoolSites PHP Functions |
|
Most Referenced Functions » google_pagerank() » preg_replace() » imagecreatefrompng() » site_pageranks() » imagepng() » imagedestroy() » imagestring() » imagecolorallocate() » htmlentities() » preg_match() » fopen() » header() » getimagesize() » preg_match_all() » session_start() » htmlspecialchars() » ob_start() » ob_flush() » strstr() » flush() » strpos() » setcookie() » str_replace() » array2vars() » nl2br() » preg_split() » ereg() » ereg_replace() » urlencode() » readgzfile() Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m. |
PHP Functions
Function: class_implements (PHP 5) class_implements -- Return the interfaces which are implemented by the given classDescriptionarray class_implements ( mixed class [, bool autoload] )This function returns an array with the names of the interfaces that the given class implements. Parameters
class An object (class instance) or a string (class name). Return ValuesReturns an array or FALSE on error. ChangeLog
Version Description 5.1.0 Added the option to pass the parameter as a string
Examples
Example 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
)
Related Function(s) |