Extracts the href for a specific rel from an xml object.
public static getLinkHref ( SimpleXMLElement $xml, string $rel ) : string | ||
$xml | SimpleXMLElement | |
$rel | string | the value of the rel attribute whose href you want |
Résultat | string |