document.getelementbyid in html code example
Example 1: getelementbyid
document.getElementById("someid");
Example 2: $dom->getElementById
<?php
$doc = new DomDocument;
// We need to validate our document before referring to the id
$doc->validateOnParse = true;
$doc->Load('my.xml');
echo $doc->getElementById('php-basics') . "\n";
?>