1 2 3 4 5 6 7 8 9 10 11 12 13
<?php require __DIR__ . '/../vendor/autoload.php'; use App\Etym; $baseURL = "http://www.etymonline.com/word/"; $htmlNode = "section[class^='word__defination']"; $etym = new Etym($baseURL, $htmlNode); $result = $etym->getDefinition(); echo $result . PHP_EOL;