このオブジェクトが返されました:
Array
(
[0] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Desc] => Amount should be numeric.
)
)
[1] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Desc] => Please enter your Reference Number.
)
)
)
desc 値を取得するにはどうすればよいですか? 両方の Desc Values を取得する必要があります (「金額は数値である必要があります。」と「参照番号を入力してください。」)
私が試してみました:
$res = $str[0];
返されました:
SimpleXMLElement Object
(
[@attributes] => Array
(
[Desc] => Amount should be numeric.
)
)