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.
この配列から OUTPUT を取得するにはどうすればよいでしょうか。年齢を検索しましたが、何も見つかりません。「$array->ext->test1」かもしれないと思ったのですが、うまくいきませんでした。
Array ( [0] => Array ( [ext] => test1 [type] => test2 [url] => OUTPUT ) )
echo $arr[0]['url'];
単純にそのとおりです。:-)
値を取得する方法は次のとおりです。
echo $arr[0]['ext']; echo $arr[0]['type']; echo $arr[0]['url'];