PHP » GoLang |
login |
register |
about
|
GoLang DOMXPath::query
request it (392)
GoLang replacement for PHP's DOMXPath::query
[edit | history]
DOMXPath::query(PHP 5, PHP 7) DOMXPath::query — Evaluates the given XPath expression Description
public DOMNodeList DOMXPath::query
( string
$expression
[, DOMNode $contextnode
[, bool $registerNodeNS = TRUE
]] )
Executes the given XPath Parameters
Return Values
Returns a DOMNodeList containing all nodes matching
the given XPath
If the Changelog
Examples
Example #1 Getting all the english books
<?php The above example will output: Found The Grapes of Wrath, by John Steinbeck Found The Pearl, by John Steinbeck
We can also use the
<?php See Also
|
more
Recently updated
more
Most requested
more
Last requests
|