{"image_url":null,"published":"2012-03-23 12:30:12","url":"https://blog.tnnsst35.me/entry/tech/php/648/","height":"190","blog_title":"\u307c\u304f\u306e\u30bb\u30fc\u30d6\u30dd\u30a4\u30f3\u30c8","width":"100%","author_name":"tnnsst35","version":"1.0","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.tnnsst35.me%2Fentry%2Ftech%2Fphp%2F648%2F\" title=\"\n\t\t\t\tPHP\u3067O(n)\u306e\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570\t\t - \u307c\u304f\u306e\u30bb\u30fc\u30d6\u30dd\u30a4\u30f3\u30c8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\n\t\t\t\tPHP\u3067O(n)\u306e\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570\t\t","blog_url":"https://blog.tnnsst35.me/","description":"\u793e\u5185\u306eLT\u3067<a href=\"https://twitter.com/#!/tonnyxu\" target=\"_blank\">@TonnyXu</a>\u3055\u3093\u304c\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u306e\u8a71\u3057\u3066\u305f\u3002 for\u6587\u3067\u306e\u66f8\u304d\u65b9\u306f\u982d\u306e\u4e2d\u306b\u306a\u304b\u3063\u305f\u306e\u3067\u30e1\u30e2\u3002 [php] function fib($n) { $currentFib = 0; $nextFib = 1; for ($i = 0;$i < $n;$i++) { $sum = $currentFib + $nextFib; $currentFib = $nextFib; $nextFib = $sum; } return $currentFib; } echo \u2026","author_url":"https://blog.hatena.ne.jp/tnnsst35/","categories":["PHP"]}