我正在使用一些XML教区,从APIC、blah blah......获得一些信息。
在我的发言稿中有一个地方,我需要把扼杀变成暗中,但我不敢肯定......
我反对:
object(parserXMLElement)#45 (4) {
["name:private"]=>
string(7) "balance"
["data:private"]=>
object(SimpleXMLElement)#46 (1) {
[0]=>
string(12) "11426.46"
}
["children:private"]=>
NULL
["rows:private"]=>
NULL
}
I need to have this string "11426.46" stored in some var as integer.
When I echo $parsed->result->balance
I get that string, but if I want to cast it as int, the result is: 1.
Please help!
Thanks a lot!