PHP » GoLang |
login |
register |
about
|
GoLang DOMXPath::evaluate
request it (385)
GoLang replacement for PHP's DOMXPath::evaluate
[edit | history]
DOMXPath::evaluate(PHP 5 >= 5.1.0, PHP 7) DOMXPath::evaluate — Evaluates the given XPath expression and returns a typed result if possible Description
public mixed DOMXPath::evaluate
( string
$expression
[, DOMNode $contextnode
[, bool $registerNodeNS = TRUE
]] )
Executes the given XPath Parameters
Return Values
Returns a typed result if possible or a DOMNodeList
containing all nodes matching the given XPath
If the Changelog
Examples
Example #1 Getting the count of all the english books
<?php The above example will output: There are 2 english books |
more
Recently updated
more
Most requested
more
Last requests
|