<?php
$xmls = '<response>
<result-code fatal="false">0</result-code>
<bills-list>
<bill id="1380271108" status ="60" error="0" sum="0.20" />
</bills-list>
</response>';
//print_r($xml);
$bl = "bills-list";
echo "id " . (int)$xml->$bl->bill[0]["id"] ."\n";
echo "status " . (int)$xml->$bl->bill[0]["status"] ."\n";
PD9waHAKJHhtbHMgPSAnPHJlc3BvbnNlPgo8cmVzdWx0LWNvZGUgZmF0YWw9ImZhbHNlIj4wPC9yZXN1bHQtY29kZT4KPGJpbGxzLWxpc3Q+CjxiaWxsIGlkPSIxMzgwMjcxMTA4IiBzdGF0dXMgPSI2MCIgZXJyb3I9IjAiIHN1bT0iMC4yMCIgLz4KPC9iaWxscy1saXN0Pgo8L3Jlc3BvbnNlPic7CgokeG1sID0gc2ltcGxleG1sX2xvYWRfc3RyaW5nKCR4bWxzKTsKCi8vcHJpbnRfcigkeG1sKTsKCiRibCA9ICJiaWxscy1saXN0IjsKZWNobyAiaWQgIiAuIChpbnQpJHhtbC0+JGJsLT5iaWxsWzBdWyJpZCJdIC4iXG4iOwplY2hvICJzdGF0dXMgIiAuIChpbnQpJHhtbC0+JGJsLT5iaWxsWzBdWyJzdGF0dXMiXSAuIlxuIjs=