DOMXPath::registerPhpFunctionNSRegister a PHP functions as namespaced XPath function Description
public void DOMXPath::registerPhpFunctionNS(string
$namespaceURI, string $name, callable $callable)This method enables the ability to use a PHP function as a namespaced XPath function inside XPath expressions. Parameters
Errors/Exceptions
Return ValuesNo value is returned. ExamplesExample #1 Register a namespaced XPath function and call it from the XPath expression The above example will output something similar to: Found 2 books starting with 'PHP': PHP Basics by Jim Smith PHP Secrets by Jenny Smythe See Also
|