TemplateTag::getElementsByTagName - jcobban/Genealogy GitHub Wiki
$tag->getElementsByTagName($tagname)
This method searches the children of the current tag and returns an array of instances of class TemplateTag
for which the tag name matches the parameter, ignoring case. For example:
$h1s = $template->getDocument()->getElementsByTagName('h1');
returns an array containing all of the <h1>
tags in the document.
Next: $tag[$key]