|
PHP5中文手册
DOMDocument->registerNodeClass()(PHP 5 >= 5.2.0) DOMDocument->registerNodeClass() — Register extended class used to create base node type 说明DOMDocument
bool registerNodeClass
( string $baseclass
, string $extendedclass
)
This method allows you to register your own extended DOM class to be used afterward by the PHP DOM extension. This method is not part of the DOM standard. 参数
返回值如果成功则返回 TRUE,失败则返回 FALSE。 更新日志
范例
Example#1 Adding a new method to DOMElement to ease our code
<?php 上例将输出:
|