<?php $xml = new SimpleXMLElement( '<DOM> <TAB id="ID1" width="30.1" height="0.5" ></TAB> <TAB id="ID2" width="15.7" height="1.8" ></TAB> </DOM>'); foreach ($xml->children() as $second_level) { echo $second_level->attributes()->id . "<br>"; $width = (float)$second_level->attributes()->width; echo $width * 10 . "<br>"; $height = (float)$second_level->attributes()->height; echo $height * 10 . "<br>"; }
You have javascript disabled. You will not be able to edit any code.
There are `0` results