ZwiiCMS/core/module/theme/view/fonts/fonts copy.php

11 lines
363 B
PHP
Raw Normal View History

<?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) {
2022-02-17 15:23:18 +01:00
if ($element->$textContent === 'https://fonts.cdnfonts.com/css/sketched') {
var_dump( $element['textContent'] );
}
}