{"id":2328,"date":"2015-05-06T08:16:43","date_gmt":"2015-05-05T23:16:43","guid":{"rendered":"http:\/\/programminglanguage7.com\/?p=2328"},"modified":"2015-05-06T08:16:43","modified_gmt":"2015-05-05T23:16:43","slug":"post-2328","status":"publish","type":"post","link":"https:\/\/programminglanguage7.com\/?p=2328","title":{"rendered":"while\u6587\u3092\u77e5\u308d\u3046"},"content":{"rendered":"<p><span style=\"font-size: 14pt;\">\u3053\u306e\u7ae0\u3067\u306fwhile\u6587\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u4f55\u56de\u3082\u540c\u3058\u51e6\u7406\u3092\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3068\u304d\u306bwhile\u6587\u3092\u4f7f\u3048\u3070\u7c21\u5358\u306b\u8a18\u8ff0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u4f8b\u3048\u3070\u540c\u3058\u3088\u3046\u306a\u51e6\u7406\u3092\u4f55\u5ea6\u3082\u7e70\u308a\u8fd4\u3059\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304f\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f55\u5ea6\u3082\u540c\u3058\u51e6\u7406\u3092\u66f8\u304f\u306e\u306f\u9762\u5012\u3067\u3059\u3057\u3001\u9593\u9055\u3044\u3082\u591a\u304f\u306a\u308a\u304c\u3061\u3067\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u305d\u3053\u3067while\u3092\u4f7f\u3046\u3068\u7c21\u6f54\u306b\u66f8\u304f\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11504.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2329\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11504.jpg\" alt=\"1\" width=\"274\" height=\"136\" \/><\/a><\/span> <span style=\"font-size: 14pt;\">while\u6587\u306e\u57fa\u672c\u69cb\u6587\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u304c\u3001\u8a73\u3057\u3044\u8aac\u660e\u306f\u4f8b\u306e\u5f8c\u306b\u884c\u3044\u307e\u3059\u3002<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11505.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2330\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11505-300x173.jpg\" alt=\"1\" width=\"300\" height=\"173\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11505-300x173.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11505.jpg 315w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/span> <span style=\"font-size: 14pt;\">\u3067\u306f\u4f8b\u3092\u307f\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/span><br \/>\n<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11506.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2331\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11506-300x135.jpg\" alt=\"1\" width=\"300\" height=\"135\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11506-300x135.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11506.jpg 514w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><span style=\"font-size: 14pt;\">\u521d\u3081\u306bwhile\u304c\u5b9f\u884c\u3055\u308c\u308b\u6642\u306b\u6761\u4ef6\u5f0f\u304cTRUE\u304bFALSE\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">TRUE\u3067\u3042\u308b\u5834\u5408\u306b\u306fwhile\u306e\u51e6\u7406\u6587\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">FALSE\u3067\u3042\u308b\u5834\u5408\u306b\u306f\u51e6\u7406\u6587\u306f\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">while\u306f\u6761\u4ef6\u5f0f\u304cTRUE\u3067\u3042\u308b\u9650\u308a\u4f55\u5ea6\u3067\u3082\u51e6\u7406\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u9806\u3092\u8ffd\u3063\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2460 $i\u306b\u521d\u671f\u50241\u3092\u4ee3\u5165\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">while ( $i &lt; 4)\u306e\u90e8\u5206\u306e\u6761\u4ef6\u5f0f\u3092if\u6587\u3068\u540c\u3058\u3088\u3046\u306bTRUE\u304bFALSE\u3067\u5224\u5b9a\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">1\u306f\u307e\u30604\u672a\u6e80\u3067TRUE\u3067\u3059\u306e\u3067<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11507.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2332\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11507-300x29.jpg\" alt=\"1\" width=\"300\" height=\"29\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11507-300x29.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11507.jpg 415w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\u3092\u5b9f\u884c\u3057\u3066\u3001<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11508.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2333\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11508.jpg\" alt=\"1\" width=\"144\" height=\"38\" \/><\/a>\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">FALSE\u3067\u3042\u308b\u306a\u3089\u3070\u4f55\u3082\u51fa\u529b\u3055\u308c\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u305d\u3057\u3066\u6b21\u306e2\u306b\u9032\u307f\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2461\u300c$i++;\u300d\u306e\u7b87\u6240\u3067$i\u306f1\u3092\u52a0\u3048\u3089\u308c\u307e\u3059\u306e\u30672\u306b\u306a\u308a\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2462\u305d\u3057\u3066\u3001\u307e\u305f\u6700\u521d\u306e<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11509.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2334\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11509.jpg\" alt=\"1\" width=\"202\" height=\"36\" \/><\/a>\u306e\u90e8\u5206\u306b\u623b\u308a\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u4e0a\u306e2\u756a\u3067$i\u306f1\u3092\u8db3\u3055\u308c\u3066\u3044\u308b\u306e\u30672\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u305d\u3057\u3066<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11510.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2335\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11510.jpg\" alt=\"1\" width=\"202\" height=\"36\" \/><\/a>\u306e\u6761\u4ef6\u5224\u5b9a\u306b\u5165\u308a\u307e\u3059\u304c\u30012\u306f\u307e\u30604\u672a\u6e80\u306a\u306e\u3067TRUE\u306b\u306a\u308a\u3001<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11511.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2336\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11511-300x28.jpg\" alt=\"1\" width=\"300\" height=\"28\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11511-300x28.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11511.jpg 410w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\u3092\u5b9f\u884c\u3057\u3001<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11512.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2337\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11512.jpg\" alt=\"1\" width=\"140\" height=\"38\" \/><\/a>\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2463\u300c$i++;\u300d\u306e\u7b87\u6240\u3067$i\u306f1\u3092\u52a0\u3048\u3089\u308c\u307e\u3059\u306e\u30673\u306b\u306a\u308a\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2464\u305d\u3057\u3066\u3001\u307e\u305f\u6700\u521d\u306ewhile ( $i &lt; 4 )\u306e\u90e8\u5206\u306b\u623b\u308a\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u4e0a\u306e4\u756a\u3067$i\u306f1\u3092\u8db3\u3055\u308c\u3066\u3044\u308b\u306e\u30673\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u305d\u3057\u3066<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11510.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2335\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11510.jpg\" alt=\"1\" width=\"202\" height=\"36\" \/><\/a>\u306e\u6761\u4ef6\u5224\u5b9a\u306b\u5165\u308a\u307e\u3059\u304c\u30013\u306f\u307e\u30604\u672a\u6e80\u306a\u306e\u3067TRUE\u306b\u306a\u308a\u3001<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11511.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2336\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11511-300x28.jpg\" alt=\"1\" width=\"300\" height=\"28\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11511-300x28.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11511.jpg 410w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\u3092\u5b9f\u884c\u3057\u3001<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11514.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2340\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11514.jpg\" alt=\"1\" width=\"141\" height=\"39\" \/><\/a>\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2465\u300c$i++;\u300d\u306e\u7b87\u6240\u3067$i\u306f1\u3092\u52a0\u3048\u3089\u308c\u307e\u3059\u306e\u30674\u306b\u306a\u308a\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2466\u305d\u3057\u3066\u3001\u307e\u305f\u6700\u521d\u306e<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11510.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2335\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11510.jpg\" alt=\"1\" width=\"202\" height=\"36\" \/><\/a>\u306e\u90e8\u5206\u306b\u623b\u308a\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u4e0a\u306e6\u756a\u3067$i\u306f1\u3092\u8db3\u3055\u308c\u3066\u3044\u308b\u306e\u30674\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u305d\u3057\u3066<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11510.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2335\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11510.jpg\" alt=\"1\" width=\"202\" height=\"36\" \/><\/a>\u306e\u6761\u4ef6\u5224\u5b9a\u306b\u5165\u308a\u307e\u3059\u304c\u30014\u306f\u3059\u3067\u306b4\u672a\u6e80\u3067\u306f\u306a\u3044\u306e\u3067FALSE\u306b\u306a\u308a\u3001while\u6587\u306f\u3053\u3053\u3067\u7d42\u4e86\u3067\u3059\u3002<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11513.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2338\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11513.jpg\" alt=\"1\" width=\"271\" height=\"219\" \/><\/a><\/span> <span style=\"font-size: 14pt;\">\u3082\u3057\u3001$i++\u304c\u306a\u3044\u3068\u3069\u3046\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u304b\uff1f\u7b54\u3048\u306f\u7121\u9650\u30eb\u30fc\u30d7\u3068\u8a00\u3044\u307e\u3057\u3066\u3001<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11510.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2335\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/11510.jpg\" alt=\"1\" width=\"202\" height=\"36\" \/><\/a>\u306e\u6761\u4ef6\u90e8\u5206\u304c\u6c38\u9060\u306b4\u4ee5\u4e0b\u306b\u306a\u3089\u306a\u3044\u306e\u3067\u7121\u9650\u306b\u7e70\u308a\u8fd4\u3057\u3092\u884c\u3044\u307e\u3059\u306e\u3067\u6c17\u3092\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u7ae0\u3067\u306fwhile\u6587\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 \u4f55\u56de\u3082\u540c\u3058\u51e6\u7406\u3092\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3068\u304d\u306bwhile\u6587\u3092\u4f7f\u3048\u3070\u7c21\u5358\u306b\u8a18\u8ff0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u4f8b\u3048\u3070\u540c\u3058\u3088\u3046\u306a\u51e6\u7406\u3092\u4f55\u5ea6\u3082\u7e70\u308a\u8fd4\u3059\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304f\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f55\u5ea6\u3082\u540c\u3058\u51e6\u7406\u3092\u66f8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[193],"tags":[162],"class_list":["post-2328","post","type-post","status-publish","format-standard","hentry","category-php","tag-while"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts\/2328"}],"collection":[{"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2328"}],"version-history":[{"count":2,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts\/2328\/revisions"}],"predecessor-version":[{"id":2341,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts\/2328\/revisions\/2341"}],"wp:attachment":[{"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}