PHP » GoLang |
login |
register |
about
|
GoLang DOMXPath::registerPhpFunctions
request it (309)
GoLang replacement for PHP's DOMXPath::registerPhpFunctions
[edit | history]
PHP DOMXPath::registerPhpFunctionsPHP original manual for DOMXPath::registerPhpFunctions [ show | php.net ]DOMXPath::registerPhpFunctions(PHP 5 >= 5.3.0, PHP 7) DOMXPath::registerPhpFunctions — Register PHP functions as XPath functions DescriptionThis method enables the ability to use PHP functions within XPath expressions. Parameters
Return ValuesNo value is returned. ExamplesThe following examples use book.xml which contains the following:
Example #1 book.xml <?xml version="1.0" encoding="UTF-8"?> <books> <book> <title>PHP Basics</title> <author>Jim Smith</author> <author>Jane Smith</author> </book> <book> <title>PHP Secrets</title> <author>Jenny Smythe</author> </book> <book> <title>XML basics</title> <author>Joe Black</author> </book> </books>
Example #2 DOMXPath::registerPHPFunctions() with php:functionString
<?php The above example will output something similar to: Found 2 books starting with 'PHP': PHP Basics by Jim Smith PHP Secrets by Jenny Smythe
Example #3 DOMXPath::registerPHPFunctions() with php:function
<?php The above example will output something similar to: Books with multiple authors: PHP Basics See Also
|
more
Recently updated
more
Most requested
more
Last requests
|