{"provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/y_uti/","image_url":null,"width":"100%","description":"PHP \u306e foreach \u306b\u914d\u5217\u3067\u306f\u306a\u3044\u5024\u3092\u6e21\u3059\u3068\u3001\u8b66\u544a\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002\u6b21\u306e\u3088\u3046\u306a test.php \u3068\u3044\u3046\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u3066\u78ba\u8a8d\u3057\u307e\u3059\u3002 <?php $arr = null; foreach ($arr as $k => $v) { print \"$k => $v\\n\"; } \u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u8b66\u544a\u304c\u51fa\u529b\u3055\u308c\u307e\u3057\u305f\u3002 $ php test.php PHP Warning: Invalid argument supplied for foreach() in /.../test.php on line 3 foreach \u306b\u6e21\u3055\u308c\u308b\u914d\u5217\u304c null \u304b\u3082\u3057\u308c\u306a\u3044\u5834\u5408\u3001\u914d\u5217\u306b\u30ad\u30e3\u30b9\u2026","blog_url":"https://y-uti.hatenablog.jp/","height":"190","blog_title":"y_uti \u306e\u30d6\u30ed\u30b0","version":"1.0","published":"2014-06-17 19:59:30","type":"rich","title":"PHP \u306e array \u3068 Traversable","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy-uti.hatenablog.jp%2Fentry%2F2014%2F06%2F17%2F195930\" title=\"PHP \u306e array \u3068 Traversable - y_uti \u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"y_uti","categories":[],"provider_url":"https://hatena.blog","url":"https://y-uti.hatenablog.jp/entry/2014/06/17/195930"}