Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PHP の単純な xml の配列ワイルドカードを教えてください。配列の 2 番目の部分からワイルドカード応答を取得したいと考えています。エラーに数字が入力されている場合にのみ機能します。ワイルドカードとは何ですか。そのため、スタッフ配列 0 にすべてのエラーが返されます。
例
$xml->Test->Account->Information->Stuff[0]->Next->Next->Error[]['Duration'];
何かのようなもの
$results = array(); foreach ($xml->Test->Account->Information->Stuff[0]->Next->Next->Error as $error) { $results[] = $error['Duration']; }