我有:
$a = new SimpleXMLElement($myString);
其中 $a 包含:
$a
: object(SimpleXMLElement) =
HEADER: object(SimpleXMLElement) =
LOG: object(SimpleXMLElement) =
PARAMS: object(SimpleXMLElement) =
CONTENT: object(SimpleXMLElement) =
LOT: object(SimpleXMLElement) =
DEGREES: object(SimpleXMLElement) =
@attributes: array =
value: string = 30
这个
$a->CONTENT->LOT->DEGREE[@value];
得到我:
: object(SimpleXMLElement) =
0: string = 30
我怎样才能得到30?