{"categories":["PHP"],"title":"Generator\u3068array\u3067\u51e6\u7406\u901f\u5ea6\u3092\u8a08\u6e2c\u3057\u3066\u307f\u305f\u3063\u305fw@\u6539\u4feever","height":"190","description":"Generator\u3068array\u306e\u5b9f\u884c\u901f\u5ea6\u3092\u691c\u8a3c\u3059\u308b\u305f\u3081\u306b\u4e0b\u8a18\u306e \u7c21\u5358\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u307f\u305f\u3063\u305fw Generator.ver function CounterGenerator() { for ($i = 1; $i <= 10; $i++) { yield $i; } } $generator = CounterGenerator(); foreach ($generator as $count) { echo $count; } Array.ver $counter = range(1,10000); foreach($counter as $number) { echo $number\u2026","version":"1.0","url":"https://raichel.hatenablog.com/entry/2015/01/18/173600","author_name":"raichel","width":"100%","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","published":"2015-01-18 17:36:00","blog_title":"\u9b54\u6cd5\u4f7f\u3044\u306e\u5375","image_url":null,"author_url":"https://blog.hatena.ne.jp/raichel/","blog_url":"https://raichel.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fraichel.hatenablog.com%2Fentry%2F2015%2F01%2F18%2F173600\" title=\"Generator\u3068array\u3067\u51e6\u7406\u901f\u5ea6\u3092\u8a08\u6e2c\u3057\u3066\u307f\u305f\u3063\u305fw@\u6539\u4feever - \u9b54\u6cd5\u4f7f\u3044\u306e\u5375\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich"}