PHP 8.5.0 Alpha 4 available for testing

Voting

: max(one, two)?
(Example: nine)

The Note You're Voting On

paradox_haze at live dot de
15 years ago
Had some issues with getElementById() while searching for a specific element in a XHTML document.
I wrote a small function what was solving my problem:

<?php
function getElementById($id)
{
$xpath = new DOMXPath($this->domDocument);
return
$xpath->query("//*[@id='$id']")->item(0);
}
?>

<< Back to user notes page

To Top