私はこのような配列を持っています:
Array (
[0] => Mollie_Response Object (
[@attributes] => Array ( [version] => v1 )
[success] => true
[resultcode] => 10
[resultmessage] => Customer has the following payment methodes.
[services] => Mollie_Response Object (
[ivr] => true
[minitix] => true
[psms] => true
[ideal] => true
[paysafecard] => false
)
)
)
[理想]の値を取得したいのですが、これを行う方法がわかりません。
私が試したのはこれです:
$response = $simplexml;
foreach( $response as $value )
{
echo 'Test: '.$value[0].'<br>';
}
応答は次のとおりです。
Test: true
Test: 10
Test: Customer has the following payment methodes.
Test:
助言がありますか?