中国数据网
http://www.dbchina.net
收藏本页
联系我们
 
php5手册(chm)
运行环境 windos All
授权方式 免费软件
软件大小 6.43 MB
整 理 人 admin
整理时间 07年12月20日
开 发 商
下载次数 30
软件简介

interface_exists

(PHP 5 >= 5.0.2)

interface_exists — 检查接口是否已被定义

说明

bool interface_exists ( string $interface_name [, bool $autoload] )

本函数在由 interface_name 给出的接口已定义时返回 TRUE,否则返回 FALSE

 

例 368. interface_exists() 例子

<?php
// Check the interface exists before trying to use it
if (interface_exists('MyInterface'
)) {
    class 
MyClass implements 
MyInterface
    
{
        
// Methods
    
}
}
?>
本地下载打不开请多刷新几次!广告也许会令你心烦,请谅解!
  本地下载 [本地]解压密码:www.dbchina.net
其他下载: 搜狗下载 谷歌下载 114下载
Copyright ©2006-2009 DbChina.Net | 鲁ICP备05031207号