function GetSvgSize($ImageSvgFile)
    {
    $FileContents = file_get_contents($ImageSvgFile);
    $doc = new DOMDocument();
    $dom->preserveWhiteSpace = False;
    $doc->loadXML($FileContents) or die('Failed to load SVG file ' . $ImageSvgFile . ' as XML.');
    $SvgTags = $doc->getElementsByTagName('svg');
    foreach ($SvgTags as $SvgTag)
       {
       $SvgSize["Width"] = intval($SvgTag->getAttribute('width'));
       $SvgSize["Height"] = intval($SvgTag->getAttribute('height'));
       }
    Return $SvgSize;
    }
 function ShowVariable($TheVariable) 
    {
    $VariableName = key($TheVariable);
    $VariableValue = $TheVariable[$VariableName];
    echo chr(60). 'p' . chr(62) . $VariableName . ' is ';
    var_dump($VariableValue);  
    }
$SvgSize = GetSvgSize('\\\Server\Path\Image.svg');
ShowVariable(compact('SvgSize'));