...-深入Ngi... interface_exists — 检查接口是否已被定义 method_exists — 检查类的方法是否存在 property_exists — 检查对象或类是否具有该属性 ...
基于6个网页-相关网页
检查类的方法是否存在
Check whether the class's methods exist
以上为机器翻译结果,长、整句建议使用 人工翻译 。
在这个简单的例子中,客户类的delete方法包含检查该客户的一个或多个订单是否依然存在的适当代码。
In this simple example, the delete method of the customer class contains appropriate code to check if one or more orders for this customer still exist.
youdao
应用推荐
模块上移
模块下移
不移动