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.ini 中简单 xml 的数组通配符是什么?我想从数组的第二部分获得通配符响应。它仅在错误填充有数字时才有效,通配符是什么,因此它将带回填充数组 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']; }