- Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
- barry
<?php
$html = <<<HTML
<meta name="rows" content="barry" session="fooey" />
HTML;
$zs = 'fooey';
$dom = new DOMDocument;
$dom->loadHTML($html);
echo (new DOMXPath($dom))->evaluate('string(//meta[@session="' . $zs. '"]/@content)');