ZwiiCMS/core/module/theme/view/fonts/fonts copy.php
2022-02-08 13:23:34 +01:00

11 lines
362 B
PHP

<?php
$filefont = 'https://www.cdnfonts.com/sketched.font';
$doc = new DOMDocument();
$doc->loadHTMLFile($filefont, LIBXML_NOERROR);
$elements = $doc->getElementsByTagName('i');
var_dump ($elements);
foreach($elements as $element) {
if ($element->$textContent === 'http://fonts.cdnfonts.com/css/sketched') {
var_dump( $element['textContent'] );
}
}