{"id":86014,"date":"2019-02-15T14:51:59","date_gmt":"2019-02-15T05:51:59","guid":{"rendered":"https:\/\/www.sejuku.net\/blog\/?p=86014"},"modified":"2024-05-06T11:54:19","modified_gmt":"2024-05-06T02:54:19","slug":"86014","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/86014","title":{"rendered":"\u521d\u5fc3\u8005\u306e\u306a\u305c\u3092\u4e00\u6319\u89e3\u6c7a!\u4eca\u3055\u3089\u805e\u3051\u306a\u3044PHPwhile\u306e\u57fa\u790e\u3068\u672c\u8cea"},"content":{"rendered":"<p><div class=\"box_voice\">while\u3001for\u3001foreach\u3001\u540c\u3058\u3088\u3046\u306a\u30eb\u30fc\u30d7\u306a\u306e\u306b\u3044\u304f\u3064\u3082\u3042\u308b\u610f\u5473\u304c\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u3002\u3072\u3068\u3064\u3060\u3051\u3067\u3044\u3044\u306e\u3067\u306f\uff1f<\/div><\/p>\n<p>\u306f\u3058\u3081\u307e\u3057\u3066\u3001\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u5e73\u5c71\u3067\u3059\u3002\u79c1\u306f\u904e\u53bb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306b\u632b\u6298\u3059\u308b\u3053\u30687\u56de\u3001\u306f\u3058\u3081\u3066\u5fc3\u306e\u5e95\u304b\u3089\u7406\u89e3\u3067\u304d\u305f\u8a00\u8a9e\u304cPHP\u3067\u3057\u305f\u3002PHP\u3092\u7fd2\u5f97\u3057\u305f\u3053\u3068\u3067\u3001CakePHP\u3092\u4f7f\u3063\u305fWeb\u30b5\u30fc\u30d3\u30b9\u3084\u3001\u30b5\u30fc\u30d0\u30b5\u30a4\u30c9\u3068\u9023\u643a\u3057\u305f\u30cf\u30a4\u30d6\u30ea\u30c3\u30c9\u30a2\u30d7\u30ea\u306e\u4f5c\u6210\u3092\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305f\u30011\u3064\u306e\u8a00\u8a9e\u306e\u672c\u8cea\u3092\u62bc\u3055\u3048\u305f\u3053\u3068\u3067\u3001\u4ed6\u306e\u8a00\u8a9e\u306e\u7fd2\u5f97\u304c\u304b\u306a\u308a\u5bb9\u6613\u306b\u3067\u304d\u308b\u3088\u3046\u306b\u3082\u306a\u308a\u307e\u3057\u305f\u3002\u73fe\u5728\u306f\u3001Python\u3092\u4f7f\u3063\u305f\u4eba\u5de5\u77e5\u80fd\u3067\u3001\u3072\u3068\u3064\u9762\u767d\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u9032\u3081\u3066\u3044\u307e\u3059\u3002\u3055\u3066while\u306b\u95a2\u3057\u3066\u3001\u516c\u5f0f\u30de\u30cb\u30e5\u30a2\u30eb\u306b\u306f\u6b21\u306e\u3088\u3046\u306a\u4e00\u6587\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<blockquote><p>while\u30eb\u30fc\u30d7\u306f\u3001PHP\u3067\u6700\u3082\u7c21\u5358\u306a\u30bf\u30a4\u30d7\u306e\u30eb\u30fc\u30d7\u3067\u3059\u3002<\/p><\/blockquote>\n<p>\u5f15\u7528\u5143\uff1aPHP: while &#8211; Manual <a href=\"http:\/\/php.net\/manual\/ja\/control-structures.while.php\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/php.net\/manual\/ja\/control-structures.while.php<\/a><\/p>\n<p>\u3044\u304f\u3089\u7c21\u5358\u3068\u8a00\u308f\u308c\u3066\u3082\u3001\u521d\u5fc3\u8005\u306b\u3068\u3063\u3066\u65b0\u3057\u304f\u89e6\u308c\u308b\u6982\u5ff5\u306f\u3064\u307e\u3065\u304f\u30dd\u30a4\u30f3\u30c8\u306b\u306a\u308b\u3082\u306e\u3002\u3082\u3057\u304b\u3057\u305f\u3089\u3001\u3042\u306a\u305f\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u60a9\u307f\u3092\u304a\u6301\u3061\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<div class=\"box01\">\n<ul>\n<li><b>for\u3068while\u306e\u4f7f\u3044\u5206\u3051\u304c\u308f\u304b\u3089\u306a\u3044<\/b><\/li>\n<li><b>\u7121\u9650\u30eb\u30fc\u30d7\u3092\u89e3\u6c7a\u3057\u305f\u3044<\/b><\/li>\n<li><b>\u30cd\u30b9\u30c8\u3092\u4f7f\u3063\u305f\u30eb\u30fc\u30d7\u51e6\u7406\u304c\u308f\u304b\u3089\u306a\u3044\u306e\u3067\u3001\u5177\u4f53\u4f8b\u3092\u898b\u3066\u307f\u305f\u3044<\/b><\/li>\n<\/ul>\n<\/div>\n<p>\u307e\u305f\u3001while\u306b\u3064\u3044\u3066\u7db2\u7f85\u7684\u306b\u77e5\u308a\u305f\u3044\u3001\u60a9\u307f\u304c\u660e\u78ba\u306b\u3067\u304d\u306a\u3044\u304b\u3089\u77e5\u8b58\u3092\u6df1\u3081\u3066\u7406\u89e3\u3057\u305f\u3044\u3068\u3044\u3046\u65b9\u3082\u3044\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u632b\u6298\u7d4c\u9a137\u56de\u306e\u7b46\u8005\u304c\u898b\u51fa\u3057\u305f\u3001\u521d\u5fc3\u8005\u304c\u5f15\u3063\u304b\u304b\u308a\u3084\u3059\u3044\u30dd\u30a4\u30f3\u30c8\u3092\u5fb9\u5e95\u7684\u306b\u89e3\u6c7a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30dd\u30a4\u30f3\u30c8\u306f\u7279\u306b\u529b\u3092\u5165\u308c\u3066\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"box01\">\n<ul>\n<li><b>while\u306e\u57fa\u790e\u3068\u672c\u8cea\u306e\u7406\u89e3<\/b><\/li>\n<li><b>while\u3068for\u306e\u4f7f\u3044\u5206\u3051\u3001\u5177\u4f53\u7684\u306a\u4f7f\u3044\u65b9<\/b><\/li>\n<li><b>\u7121\u9650\u30eb\u30fc\u30d7\u3078\u306e\u5bfe\u51e6\u65b9\u6cd5<\/b><\/li>\n<\/ul>\n<\/div>\n<p>\u6700\u5f8c\u307e\u3067\u8aad\u3093\u3067\u3044\u305f\u3060\u304f\u3053\u3068\u3067\u3001<strong>PHP\u306ewhile\u306b\u3064\u3044\u3066\u81ea\u4fe1\u3092\u6301\u3063\u3066\u4f7f\u3044\u3053\u306a\u3059\u3053\u3068\u304c\u3067\u304d\u308b<\/strong>\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3072\u3068\u308a\u3067\u3082\u591a\u304f\u306e\u65b9\u304cPHP\u306e\u672c\u8cea\u3092\u7406\u89e3\u3057\u3066\u3001\u5922\u306e\u5b9f\u73fe\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u6d3b\u7528\u3067\u304d\u305f\u306a\u3089\u7b46\u8005\u3068\u3057\u3066\u3053\u308c\u307b\u3069\u3046\u308c\u3057\u3044\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3055\u3063\u305d\u304f\u3044\u3063\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n<h2>\u8a18\u4e8b\u3092\u8aad\u3080\u524d\u306e\u78ba\u8a8d\u3068\u3059\u308a\u5408\u308f\u305b<\/h2>\n<p>while\u306e\u5b66\u7fd2\u306b\u53d6\u308a\u7d44\u3080\u524d\u306b\u3001\u307e\u305a\u306f<b>\u74b0\u5883\u306e\u78ba\u8a8d\u3068\u3059\u308a\u5408\u308f\u305b<\/b>\u3092\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>PHP\u306e\u57fa\u790e\u304c\u4e0d\u5b89\u2026\u3068\u3044\u3046\u65b9\u306f\u3053\u3061\u3089\uff01<\/h3>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/4097\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2021\/01\/howto-02-3-150x85.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">PHP\u3068\u306f\u4f55\u304b\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01\u3067\u304d\u308b\u3053\u3068\u3084\u5c06\u6765\u6027\u3001\u5b66\u7fd2\u65b9\u6cd5\u3082\u7d39\u4ecb<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e749\u670824\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<p>\u307e\u305a\u3001while\u4ee5\u524d\u306e\u90e8\u5206\u306b\u4e0d\u5b89\u304c\u6b8b\u308b\u3001\u3068\u304b\u3001PHP\u306e\u57fa\u790e\u306b\u3064\u3044\u3066\u3082\u3046\u4e00\u5ea6\u78ba\u8a8d\u3057\u3066\u304a\u304d\u305f\u3044\uff01\u3068\u3044\u3046\u65b9\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u306b\u4e00\u5ea6\u76ee\u3092\u901a\u3057\u3066\u898b\u3066\u304f\u3060\u3055\u3044\u3002\u5b66\u7fd2\u65b9\u6cd5\u306a\u3069\u3082\u7d39\u4ecb\u3055\u308c\u3066\u304a\u308a\u3001\u3059\u3067\u306b\u5b66\u7fd2\u304c\u9032\u3093\u3067\u3044\u308b\u65b9\u306b\u3082\u65b0\u3057\u3044\u767a\u898b\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3088\u3002<\/p>\n<h3>PHP\u306e\u5b9f\u884c\u74b0\u5883\u3092\u6574\u3048\u305f\u3044\u65b9\u306f\u3053\u3061\u3089\uff01<\/h3>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/29289\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/image-14-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010\u521d\u5fc3\u8005\u5fc5\u898b\uff01\u3011PHP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<p>PHP\u306e\u5b9f\u884c\u74b0\u5883\u304c\u6e96\u5099\u3067\u304d\u3066\u3044\u306a\u3044\u65b9\u3001OS\u3092\u4e57\u308a\u63db\u3048\u305f\u306e\u3067\u5b9f\u884c\u74b0\u5883\u3092\u518d\u5ea6\u6574\u5099\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u65b9\u306f\u3053\u3061\u3089\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u3061\u306a\u307f\u306b\u3001\u3053\u306e\u8a18\u4e8b\u3082\u4e0a\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308bXAMPP\u3092\u4f7f\u3063\u305f\u74b0\u5883\u3092\u30d9\u30fc\u30b9\u306b\u52d5\u4f5c\u78ba\u8a8d\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>PHP\u5b9f\u884c\u306e\u305f\u3081\u306eHTML<\/h3>\n<p>\u672c\u8a18\u4e8b\u3067\u6271\u3046<b>\u30b3\u30fc\u30c9\u306e\u3072\u306a\u5f62<\/b>\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u307e\u305a\u306f\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u958b\u304d\u3001\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\u9069\u5f53\u306a\u540d\u524d\u3092\u4ed8\u3051\u3066php\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u4fdd\u5b58\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306fsample_while.php\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u540d\u3067\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><b>sample_while.php<\/b><\/p>\n<pre class=\"lang:php decode:true \">&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"ja\"&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=\"UTF-8\"&gt;\r\n&lt;title&gt;PHP while\u306e\u30c6\u30b9\u30c8&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n&lt;!--\u3053\u3053\u306bPHP\u306e\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051--&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>PHP\u30d5\u30a1\u30a4\u30eb\u306e\u4f7f\u3044\u65b9\u3067\u3059\u304c\u3001\u672c\u8a18\u4e8b\u5185\u306b\u3042\u308bPHP\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u300c&lt;!&#8211;\u3053\u3053\u306bPHP\u306e\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051&#8211;&gt;\u300d\u306e\u90e8\u5206\u306b\u4e0a\u66f8\u304d\u3059\u308b\u3053\u3068\u3067\u52d5\u4f5c\u78ba\u8a8d\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p><b>\u30b3\u30fc\u30c9\u4f8b<\/b><\/p>\n<pre class=\"lang:php decode:true \">&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"ja\"&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=\"UTF-8\"&gt;\r\n&lt;title&gt;PHP while\u306e\u30c6\u30b9\u30c8&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n&lt;?php\r\necho \"PHP\u306e\u5b9f\u884c\u30c6\u30b9\u30c8\";\r\n?&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>sample_while.php\u3092XAMPP\u306ehtdocs\u30d5\u30a9\u30eb\u30c0\u306a\u3069\u3001\u30b5\u30fc\u30d0\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306b\u7f6e\u3044\u3066\u3001\u5b9f\u884c\u304c\u78ba\u8a8d\u3067\u304d\u305f\u3089\u6e96\u5099\u5b8c\u4e86\u3067\u3059\uff01<\/p>\n<p>PHP\u30d5\u30a1\u30a4\u30eb\u306e\u8a73\u3057\u3044\u5b9f\u884c\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u4e0a\u3067\u3082\u7d39\u4ecb\u3057\u305fPHP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u8a18\u4e8b\u306e\u4e2d\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4e0d\u5b89\u306e\u3042\u308b\u65b9\u306f\u305c\u3072\u3053\u3061\u3089\u3082\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u8a18\u4e8b\u306fWindows10,XAMPP7.3.0,PHP7.3.0\u306e\u74b0\u5883\u3067\u8a18\u8f09\u30fb\u52d5\u4f5c\u78ba\u8a8d\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>while\u306e\u4f7f\u3044\u65b9<\/h2>\n<p>\u305d\u308c\u3067\u306f\u3055\u3063\u305d\u304fwhile\u306b\u3064\u3044\u3066\u307f\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001PHP\u516c\u5f0f\u30de\u30cb\u30e5\u30a2\u30eb\u3092\u8aad\u307f\u89e3\u304f\u5f62\u3067\u8a71\u3092\u9032\u3081\u3066\u3044\u304f\u306e\u3067\u3001\u305c\u3072\u516c\u5f0f\u30de\u30cb\u30e5\u30a2\u30eb\u3092\u5225\u30bf\u30d6\u3067\u958b\u3044\u3066\u53c2\u7167\u3057\u3064\u3064\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u307f\u9032\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>PHP\u516c\u5f0f\u30de\u30cb\u30e5\u30a2\u30eb\uff1awhile <a href=\"http:\/\/php.net\/manual\/ja\/control-structures.while.php\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/php.net\/manual\/ja\/control-structures.while.php<\/a><\/p>\n<h3>\u305d\u3082\u305d\u3082while\u3068\u306f<\/h3>\n<p>while\u306fPHP\u306b\u304a\u3051\u308b\u57fa\u672c\u306e\u30eb\u30fc\u30d7\u306e1\u3064\u3067\u3059\u3002\u30eb\u30fc\u30d7\u3068\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u540c\u3058\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3055\u305b\u308b\u300c\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u300d\u306e\u3053\u3068\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u5909\u6570\u306b1\u3092\u3069\u3093\u3069\u3093\u52a0\u3048\u3066\u3001\u305d\u308c\u3092\u8868\u793a\u3057\u3066\u3044\u304f\u3088\u3046\u306a\u51e6\u7406\u304c\u3042\u308a\u307e\u3059\u306d\u3002<br \/>\nPHP\u306e\u30eb\u30fc\u30d7\u306f\u7528\u9014\u306b\u5fdc\u3058\u30664\u7a2e\u985e\u3042\u308a\u307e\u3059\u3002<\/p>\n<div class=\"box01\">\n<ul>\n<li><b>while<\/b><\/li>\n<li><b>for<\/b><\/li>\n<li><b>do-while<\/b><\/li>\n<li><b>foreach<\/b><\/li>\n<\/ul>\n<\/div>\n<p>\u305d\u308c\u305e\u308c\u306e\u4f7f\u3044\u5206\u3051\u306f\u3042\u3068\u306e\u7ae0\u3067\u3058\u3063\u304f\u308a\u3068\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u3068\u3053\u308d\u3067\u3001\u516c\u5f0f\u30de\u30cb\u30e5\u30a2\u30eb\u306b\u300cC\u306eWHILE\u30eb\u30fc\u30d7\u3068\u540c\u69d8\u306e\u52d5\u4f5c\u3092\u3057\u307e\u3059\u3002\u300d\u3068\u3044\u3046\u8b0e\u306e\u4e00\u6587\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306fC\u8a00\u8a9e\u3068\u3044\u3046PHP\u3068\u306f\u5225\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306ewhile\u3068\u3001\u3044\u307e\u5b66\u7fd2\u3057\u3066\u3044\u308bwhile\u304c\u540c\u3058\u52d5\u4f5c\u3092\u3057\u307e\u3059\u3088\u3001\u3068\u3044\u3046\u305f\u3060\u3057\u66f8\u304d\u3067\u3059\u3002\u521d\u5b66\u8005\u306e\u65b9\u306f\u7121\u8996\u3057\u3066\u3082\u3089\u3063\u3066\u69cb\u3044\u307e\u305b\u3093\u3002\u7d9a\u3044\u3066\u3001\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3092\u307f\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/h3>\n<p>while\u306e\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">while(\u6761\u4ef6\u5f0f){\r\n    \u30eb\u30fc\u30d7\u3055\u305b\u305f\u3044\u51e6\u7406;\r\n}<\/pre>\n<p>while\u306f\u6761\u4ef6\u5f0f\u304cTRUE\u306e\u9593\u3001\u30eb\u30fc\u30d7\u3055\u305b\u305f\u3044\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3057\u7d9a\u3051\u307e\u3059\u3002\u516c\u5f0f\u30de\u30cb\u30e5\u30a2\u30eb\u3067\u306f\u30eb\u30fc\u30d7\u3055\u305b\u305f\u3044\u51e6\u7406\u306e\u3053\u3068\u3092\u300c\u5165\u308c\u5b50\u306e\u6587\u300d\u3068\u8868\u73fe\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u610f\u5473\u306f\u540c\u3058\u3067\u3059\u3002\u56f3\u3067\u8868\u3059\u3068\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div id=\"attachment_85593\" style=\"width: 491px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-85593\" class=\"size-full wp-image-85593\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/whileLoop1.jpg\" alt=\"\" width=\"481\" height=\"442\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/whileLoop1.jpg 481w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/whileLoop1-150x138.jpg 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/whileLoop1-300x276.jpg 300w\" sizes=\"(max-width: 481px) 100vw, 481px\" \/><p id=\"caption-attachment-85593\" class=\"wp-caption-text\">while\u306e\u30a4\u30e1\u30fc\u30b8\u56f3<\/p><\/div>\n<p>\u300c\u6761\u4ef6\u5f0f\u304cTRUE\u300d\u3068\u3044\u3046\u8868\u73fe\u306b\u5f15\u3063\u304b\u304b\u308b\u65b9\u3082\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002TRUE\u306f\u8ad6\u7406\u578b\u306e\u5b9a\u6570\u3067\u3059\u3002\u7a81\u7136\u96e3\u3057\u3052\u306a\u5358\u8a9e\u304c\u51fa\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u8981\u3059\u308b\u306b<b>\u5f0f\u304c\u6b63\u3057\u3044\u304b\u9593\u9055\u3063\u3066\u3044\u308b\u304b<\/b>\u3092\u5224\u65ad\u3059\u308b\u969b\u306b\u4f7f\u3046\u5b9a\u6570\u306e\u8a71\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070 0 &lt; 1 \u306f\u6570\u5f0f\u3068\u3057\u3066\u6b63\u3057\u3044\u3067\u3059\u3088\u306d\u3002\u3053\u308c\u3092\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u306f\u300c\u5f0f 0 &lt; 1 \u3092\u8a55\u4fa1\u3057\u3066TRUE\u3092\u8fd4\u3059\u300d\u3068\u3044\u3046\u8868\u73fe\u3092\u3057\u307e\u3059\u3002\u6163\u308c\u306a\u3044\u3046\u3061\u306f\u96e3\u3057\u304f\u611f\u3058\u307e\u3059\u304c\u3001\u3088\u304f\u4f7f\u3046\u8868\u73fe\u3067\u3059\u306e\u3067\u3001\u304c\u3093\u3070\u3063\u3066\u6163\u308c\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u9006\u306b\u3001\u9593\u9055\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u8868\u73fe\u3059\u308b\u5b9a\u6570\u306fFALSE\u3092\u4f7f\u3044\u307e\u3059\u30020 &gt; 1\u3092\u8a55\u4fa1\u3059\u308b\u3068\u3001FALSE\u304c\u8fd4\u3055\u308c\u308b\u3068\u3044\u3046\u5177\u5408\u3067\u3059\u306d\u3002TRUE\u3068\u3042\u308f\u305b\u3066\u899a\u3048\u3066\u3057\u307e\u3044\u307e\u3057\u3087\u3046\u3002while\u306e\u5177\u4f53\u4f8b\u3068\u3057\u3066\u3001\u6b21\u306e\u3088\u3046\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u52d5\u304b\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n$i = 0;\r\n\r\nwhile($i &lt; 5){\r\n    echo $i;\r\n\r\n    $i = $i + 1;\r\n}\r\n\r\n?&gt;<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">01234<\/pre>\n<p>\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u3001\u5909\u6570$i\u306b0\u3092\u4ee3\u5165\u3057\u3001\u30eb\u30fc\u30d7\u51e6\u7406\u306b\u7a81\u5165\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e$i\u306f\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u56de\u3059\u969b\u306e\u30ab\u30a6\u30f3\u30bf\u30fc\u306e\u3088\u3046\u306a\u50cd\u304d\u3092\u3057\u307e\u3059\u3002\u30eb\u30fc\u30d7\u304c\u4e00\u5468\u56de\u308b\u305f\u3073\u306b\u30ab\u30a6\u30f3\u30bf\u30fc\u306e\u6570\u304c1\u5897\u52a0\u3057\u3066\u3044\u307e\u3059\u3088\u306d\u3002\u305d\u306e\u305f\u3081\u3001\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u3084\u30eb\u30fc\u30d7\u5909\u6570\u3068\u547c\u3070\u308c\u3066\u3044\u307e\u3059\u3002\u3042\u308f\u305b\u3066\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u51e6\u7406\u306e\u6d41\u308c\u306f<\/p>\n<div class=\"box01\">\n<p>while\u306e\u6761\u4ef6\u5f0f\u3092\u78ba\u8a8d \u2192 $i = 0 &lt; 5 \u306a\u306e\u3067TRUE<br \/>\n$i\u3092\u8868\u793a<br \/>\n$i\u306b1\u3092\u8ffd\u52a0\u3057\u3066$i\u306b\u4ee3\u5165 ($i = 1)<br \/>\nwhile\u306e\u6700\u5f8c\u307e\u3067\u6765\u305f\u306e\u3067\u6761\u4ef6\u5f0f\u306b\u623b\u308b<br \/>\n\u6761\u4ef6\u5f0f\u3092\u78ba\u8a8d \u2192 $i = 1 &lt; 5 \u306a\u306e\u3067TRUE<\/p>\n<p>\u30fb\u30fb\u30fb<\/p>\n<p>$i\u306b1\u3092\u8ffd\u52a0\u3057\u3066$i\u306b\u4ee3\u5165 ($i = 5)<br \/>\nwhile\u306e\u6700\u5f8c\u307e\u3067\u6765\u305f\u306e\u3067\u6761\u4ef6\u5f0f\u306b\u623b\u308b<br \/>\n\u6761\u4ef6\u5f0f\u3092\u78ba\u8a8d \u2192 $i = 5 &lt; 5 \u306a\u306e\u3067FALSE<br \/>\n\u6761\u4ef6\u5f0f\u304cFALSE\u306a\u306e\u3067\u3001while\u3092\u7d42\u4e86<br \/>\n\u30d7\u30ed\u30b0\u30e9\u30e0\u7d42\u4e86<\/p>\n<\/div>\n<p>\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u306a\u304a\u3001\u6761\u4ef6\u5f0f\u306e\u8a55\u4fa1\u304c\u6700\u521d\u304b\u3089FALSE\u3060\u3063\u305f\u5834\u5408\u3001while\u306e\u4e2d\u8eab\u306f\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3002\u305f\u3068\u3048\u3070\u3053\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3067\u306f\u4f55\u3082\u8868\u793a\u3055\u308c\u306a\u3044\u306e\u304c\u6b63\u89e3\u3067\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n$i = 10;\r\n\r\nwhile($i &lt; 5){\r\n    echo $i;\r\n\r\n    $i = $i + 1;\r\n}\r\n\r\n?&gt;<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \"><\/pre>\n<p>\u4e0a\u3068\u540c\u3058\u3088\u3046\u306b\u6d41\u308c\u3092\u6587\u7ae0\u306b\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n<div class=\"box01\"><\/p>\n<ul>\n<li><b>while\u306e\u6761\u4ef6\u5f0f\u3092\u78ba\u8a8d \u2192 $i = 10 &lt; 5 \u306a\u306e\u3067FALSE<\/b><\/li>\n<li><b>\u6761\u4ef6\u5f0f\u304cFALSE\u306a\u306e\u3067\u3001while\u3092\u7d42\u4e86<\/b><\/li>\n<li><b>\u30d7\u30ed\u30b0\u30e9\u30e0\u7d42\u4e86<\/b><\/li>\n<\/ul>\n<\/div>\n<p>\u3053\u306e\u3088\u3046\u306b\u52d5\u4f5c\u3059\u308b\u305f\u3081\u3001\u4f55\u3082\u8868\u793a\u3055\u308c\u306a\u3044\u308f\u3051\u3067\u3059\u3002while\u306e\u57fa\u790e\u306f\u4ee5\u4e0a\u306b\u306a\u308a\u307e\u3059\u3002\u30eb\u30fc\u30d7\u306e\u57fa\u672c\u3001\u7d0d\u5f97\u3067\u304d\u307e\u3057\u305f\u304b\uff1f<\/p>\n<h3>\u30eb\u30fc\u30d7\u51e6\u7406\u306b\u307e\u3064\u308f\u308b\u5c0f\u30cd\u30bf<\/h3>\n<p>\u3053\u3053\u3067\u306f\u30eb\u30fc\u30d7\u51e6\u7406\u3067\u3088\u304f\u51fa\u3066\u304f\u308b\u5c11\u3005\u7d30\u304b\u3044\u8a71\u3092\u53d6\u308a\u4e0a\u3052\u307e\u3059\u3002<\/p>\n<h4>\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3068\u30c7\u30af\u30ea\u30e1\u30f3\u30c8<\/h4>\n<p>\u30eb\u30fc\u30d7\u51e6\u7406\u3067\u306f\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u3092\u3072\u3068\u3064\u5897\u52a0\u3055\u305b\u308b$i = $i + 1\u3068\u3044\u3046\u51e6\u7406\u304c\u983b\u51fa\u3057\u307e\u3059\u3002\u30eb\u30fc\u30d7\u304c\u4e00\u56de\u8ee2\u3057\u305f\u305f\u3081\u3001\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u3092\u3072\u3068\u3064\u5897\u52a0\u3055\u305b\u308b\u3001\u3068\u3044\u3046\u51e6\u7406\u3067\u3059\u306d\u3002\u3042\u307e\u308a\u306b\u3082\u4f55\u5ea6\u3082\u3067\u3066\u304f\u308b\u306e\u3067\u3001\u3053\u306e\u51e6\u7406\u306f\u30ab\u30f3\u30bf\u30f3\u306b\u8a18\u8ff0\u3059\u308b\u65b9\u6cd5\u304c\u4f5c\u3089\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u304c\u6b21\u306e\u66f8\u304d\u65b9\u3067\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">$i++;\r\n\/\/$i = $i + 1;\u3068\u540c\u3058\u610f\u5473<\/pre>\n<p>\u3053\u306e\u66f8\u304d\u65b9\u3092\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3068\u3044\u3044\u3001\u5909\u6570\u30921\u5897\u52a0\u3055\u305b\u308b\u51e6\u7406\u3092\u300c\u5909\u6570\u3092\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3059\u308b\u300d\u3001\u3068\u8868\u73fe\u3057\u307e\u3059\u3002\u9006\u306b\u5909\u6570\u304b\u30891\u3092\u6e1b\u3089\u3059\u51e6\u7406\u3082\u5b58\u5728\u3057\u3001\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\u3068\u3044\u3044\u307e\u3059\u3002\u66f8\u304d\u65b9\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">$i--;\r\n\/\/$i = $i - 1;\u3068\u540c\u3058\u610f\u5473<\/pre>\n<p>\u306a\u304a\u3001\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u30fb\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\u306f\u5358\u4f53\u3067\u4f7f\u3046\u5206\u306b\u306f\u305d\u3053\u307e\u3067\u6df7\u4e71\u3057\u306a\u3044\u3082\u306e\u3067\u3059\u304c\u3001echo $i++;\u306e\u3088\u3046\u306b\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3068\u8868\u793a\u3092\u540c\u6642\u306b\u884c\u3046\u3068\u671f\u5f85\u3068\u306f\u7570\u306a\u308b\u7d50\u679c\u306b\u306a\u308b\u3053\u3068\u304c\u6642\u3005\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u5024\u3092\u8fd4\u3059\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u3042\u308b\u6f14\u7b97\u5b50\u306e\u524d\u7f6e\u30fb\u5f8c\u7f6e\u304c\u554f\u984c\u306e\u539f\u56e0\u306a\u306e\u3067\u3059\u304c\u3001\u521d\u5fc3\u8005\u306e\u3046\u3061\u306f\u3068\u308a\u3042\u3048\u305a\u7121\u8996\u3057\u3066\u3057\u307e\u3063\u3066\u5927\u4e08\u592b\u3067\u3059\u3002\u3082\u3057\u3001\u81ea\u529b\u3067\u89e3\u6c7a\u3057\u305f\u3044\u65b9\u306f\u3001\u3053\u3061\u3089\u3092\u53c2\u8003\u306b\u30c1\u30e3\u30ec\u30f3\u30b8\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n<a href=\"http:\/\/php.net\/manual\/ja\/language.operators.increment.php\" target=\"_blank\" rel=\"noopener noreferrer\">PHP\u30de\u30cb\u30e5\u30a2\u30eb\uff1a\u52a0\u7b97\u5b50\/\u6e1b\u7b97\u5b50<\/a><\/p>\n<h4>\u30b3\u30ed\u30f3\u69cb\u6587<\/h4>\n<p>\u3053\u306e\u9805\u76ee\u306fwhile\u306e\u672c\u8cea\u3068\u3044\u3046\u3088\u308a\u306f\u66f8\u304d\u65b9\u306b\u3064\u3044\u3066\u306e\u8a71\u306b\u306a\u308a\u307e\u3059\u3002HTML\u5185\u306b\u66f8\u304b\u308c\u308b\u3068\u3044\u3046PHP\u306e\u7279\u6027\u4e0a\u3001HTML\u30bf\u30b0\u3068PHP\u306e\u30b3\u30fc\u30c9\u304c\u6df7\u5728\u3059\u308b\u3053\u3068\u304c\u3088\u304f\u8d77\u3053\u308a\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u3001\u30b3\u30ed\u30f3\u3092\u4f7f\u3063\u305f\u69cb\u6587\u3001\u901a\u79f0\u30b3\u30ed\u30f3\u69cb\u6587\u3092\u4f7f\u3046\u3053\u3068\u3067\u30b3\u30fc\u30c9\u5168\u4f53\u306e\u898b\u901a\u3057\u3092\u826f\u304f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30ed\u30f3\u69cb\u6587\u306e\u66f8\u304d\u65b9\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">while(\u6761\u4ef6\u5f0f):\r\n    \u30eb\u30fc\u30d7\u51e6\u7406\r\n\r\nendwhile;<\/pre>\n<p>\u6bd4\u8f03\u306e\u305f\u3081\u306b\u666e\u901a\u306ewhile\u306e\u66f8\u5f0f\u3082\u518d\u63b2\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">while(\u6761\u4ef6\u5f0f){\r\n    \u30eb\u30fc\u30d7\u51e6\u7406\r\n\r\n}<\/pre>\n<p>\u6bd4\u3079\u308b\u3068\u3001{\u304c\uff1a\uff08\u30b3\u30ed\u30f3\uff09\u306b\u3001}\u304cendwhile;\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u3066\u3044\u308b\u306e\u304c\u308f\u304b\u308a\u307e\u3059\u306d\u3002\u521d\u5fc3\u8005\u306e\u3046\u3061\u306f\u7a4d\u6975\u7684\u306b\u30b3\u30ed\u30f3\u69cb\u6587\u3092\u4f7f\u3046\u3068\u3044\u3046\u3088\u308a\u3082\u3001\u4ed6\u4eba\u304c\u66f8\u3044\u305f\u30b3\u30fc\u30c9\u3092\u8aad\u3093\u3067\u3044\u3066\u3001\u7a81\u7136\u30b3\u30ed\u30f3\u69cb\u6587\u304c\u51fa\u3066\u304d\u305f\u3068\u304d\u306e\u305f\u3081\u306b\u899a\u3048\u3066\u304a\u304f\u3001\u3068\u3044\u3046\u5bfe\u5fdc\u3067\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h4>\u6761\u4ef6\u5f0f\u3068TRUE\u306e\u8a71<\/h4>\n<p>\u3053\u306e\u8a71\u3082\u672c\u8cea\u3068\u3044\u3046\u3088\u308a\u306f\u898b\u305f\u76ee\u306e\u554f\u984c\u306a\u306e\u3067\u3059\u304c\u3001\u6163\u308c\u306a\u3044\u3068\u9055\u548c\u611f\u304c\u3042\u308b\u90e8\u5206\u3068\u3044\u3046\u3053\u3068\u3067\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002PHP\u306e\u5b66\u7fd2\u304c\u9032\u307f\u3001\u4ed6\u4eba\u304c\u66f8\u3044\u305f\u30b3\u30fc\u30c9\u3092\u8aad\u3080\u3088\u3046\u306b\u306a\u308b\u3068\u3001\u6642\u3005\u6b21\u306e\u3088\u3046\u306a\u8868\u73fe\u306b\u51fa\u4f1a\u3046\u3053\u3068\u3082\u3042\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">while(1){\r\n    \u30eb\u30fc\u30d7\u51e6\u7406\r\n}<\/pre>\n<p>\u6761\u4ef6\u5f0f\u306e\u90e8\u5206\u306b\u6570\u5b57\u306e1\u304c\u5165\u3063\u3066\u3044\u308b\u3060\u3051\u3067\u3001\u5f0f\u3068\u306f\u8a00\u3044\u306b\u304f\u3044\u72b6\u614b\u3067\u3059\u3088\u306d\u3002\u3044\u307e\u307e\u3067\u306f\u6761\u4ef6\u5f0f\u304cTRUE\u306e\u3068\u304d\u3001while\u306f\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3059\u3001\u3068\u8aac\u660e\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u8868\u73fe\u3060\u3068\u3001TRUE\u304c\u5165\u308b\u90e8\u5206\u306f\u6570\u5f0f\u306e\u5f62\u3092\u3057\u3066\u3044\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u611f\u3058\u3092\u53d7\u3051\u307e\u3059\u304c\u3001\u5b9f\u306f\u3053\u306e\u90e8\u5206\u3001\u5f0f\u3067\u3042\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u3001\u76f4\u63a5TRUE\u3068\u8a18\u5165\u3057\u305f\u4ee5\u4e0b\u306e\u30eb\u30fc\u30d7\u306f\u554f\u984c\u306a\u304f\u56de\u308a\u7d9a\u3051\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">while(TRUE){\r\n    \u30eb\u30fc\u30d7\u51e6\u7406\r\n}<\/pre>\n<p>\u3053\u306e\u66f8\u304d\u65b9\u3001\u3042\u3068\u3067\u7d39\u4ecb\u3059\u308b\u7121\u9650\u30eb\u30fc\u30d7\u3067\u983b\u7e41\u306b\u51fa\u3066\u304f\u308b\u306e\u3067\u4eca\u306e\u3046\u3061\u306b\u304a\u3055\u3048\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u3057\u3066\u3001\u3053\u3053\u304b\u3089\u306f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3054\u3068\u306e\u30af\u30bb\u304c\u51fa\u3066\u304f\u308b\u90e8\u5206\u306a\u306e\u3067\u3059\u304c\u3001TRUE\u3068\u89e3\u91c8\u3055\u308c\u308b\u66f8\u304d\u65b9\u306f\u3044\u304f\u3064\u304b\u5b58\u5728\u3059\u308b\u3093\u3067\u3059\u3002\u305d\u306e\u3046\u3061\u306e1\u3064\u304c\u3053\u306e\u7bc0\u306e\u5192\u982d\u51fa\u3066\u304d\u305f(1)\u3068\u3044\u3046\u66f8\u304d\u65b9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001<b>while(TRUE)\u3068while(1)\u306f\u540c\u3058\u610f\u5473<\/b>\u3001\u3068\u3044\u3046\u308f\u3051\u306a\u3093\u3067\u3059\u306d\u3002\u4ed6\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3092\u5b66\u3073\u59cb\u3081\u308b\u3068\u6c17\u3065\u304f\u30dd\u30a4\u30f3\u30c8\u3067\u306f\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u4f55\u3092TRUE\u3068\u89e3\u91c8\u3057\u3066\u3001\u4f55\u3092FALSE\u3068\u89e3\u91c8\u3059\u308b\u304b\u306f\u3001\u8a00\u8a9e\u306b\u3088\u3063\u3066\u7d50\u69cb\u9055\u3044\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u7d30\u304b\u3044\u3068\u3053\u308d\u306a\u306e\u3067\u3001\u3046\u3063\u304b\u308a\u30cf\u30de\u308b\u30dd\u30a4\u30f3\u30c8\u3067\u3082\u3042\u308a\u307e\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u521d\u5b66\u8005\u306b\u306f\u3042\u307e\u308a\u95a2\u4fc2\u306a\u3044\u8a71\u3067\u3059\u304c\u3001PHP\u304c\u4f55\u3092TRUE\u3068\u89e3\u91c8\u3059\u308b\u306e\u304b\u8208\u5473\u306e\u3042\u308b\u65b9\u306f\u3053\u3061\u3089\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u308b\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p><a href=\"http:\/\/php.net\/manual\/ja\/language.types.boolean.php\" target=\"_blank\" rel=\"noopener noreferrer\">PHP\u30de\u30cb\u30e5\u30a2\u30eb\uff1a\u8ad6\u7406\u578b (boolean)<\/a><\/p>\n<p>\u3053\u306e\u9805\u76ee\u3082\u3001\u4ed6\u4eba\u304c\u66f8\u3044\u305f\u30b3\u30fc\u30c9\u3092\u8aad\u3093\u3067\u3044\u3066\u30d3\u30c3\u30af\u30ea\u3057\u306a\u3044\u3088\u3046\u3001\u77e5\u8b58\u3068\u3057\u3066\u899a\u3048\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><div id=\"attachment_85685\" style=\"width: 710px\" class=\"wp-caption alignnone\"><img decoding=\"async\" aria-describedby=\"caption-attachment-85685\" class=\"size-full wp-image-85685\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while3.jpg\" alt=\"\" width=\"700\" height=\"398\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while3.jpg 700w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while3-150x85.jpg 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while3-300x171.jpg 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while3-640x364.jpg 640w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><p id=\"caption-attachment-85685\" class=\"wp-caption-text\">[sc name=\"img-caption\"](\u5f15\u7528\u5143\uff1a GagoDesign\/shutterstock)[sc name=\"img-caption-end\"]<\/p><\/div>\u3055\u3066\u3001\u3053\u3053\u307e\u3067\u304c\u3093\u3070\u3063\u3066\u8aad\u307f\u9032\u3081\u3066\u304d\u305f\u3053\u3068\u3067\u3001while\u306e\u516c\u5f0f\u30de\u30cb\u30e5\u30a2\u30eb\u306f\u4e00\u901a\u308a\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306f\u305a\u3067\u3059\u3002\u305c\u3072\u4e00\u5ea6\u516c\u5f0f\u30de\u30cb\u30e5\u30a2\u30eb\u306b\u76ee\u3092\u901a\u3057\u3066\u81ea\u5206\u306e\u6210\u9577\u3092\u5b9f\u611f\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"http:\/\/php.net\/manual\/ja\/control-structures.while.php\" target=\"_blank\" rel=\"noopener noreferrer\">PHP\u516c\u5f0f\u30de\u30cb\u30e5\u30a2\u30eb\uff1awhile<\/a><\/p>\n<h3>\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u30b9\u30ad\u30c3\u30d7\u3059\u308bcontinue<\/h3>\n<p>\u3053\u306e\u7bc0\u3067\u306f\u30eb\u30fc\u30d7\u306e\u51e6\u7406\u3092\u4e00\u90e8\u30b9\u30ad\u30c3\u30d7\u3059\u308bcontinue\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3059\u3002\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u884c\u3063\u3066\u3044\u304f\u4e2d\u3067\u3001\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u304c\u7279\u5b9a\u306e\u5024\u306e\u3068\u304d\u3060\u3051\u5225\u306e\u51e6\u7406\u3092\u3057\u305f\u3044\u3001\u3068\u3044\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070$i = 3\u306e\u6642\u3060\u3051\u300cthree!\u300d\u3068\u8868\u793a\u3055\u305b\u305f\u3044\u3001\u3068\u3044\u3046\u3088\u3046\u306a\u5834\u9762\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u3068\u304d\u5229\u7528\u3059\u308b\u306e\u304ccontinue\u306b\u306a\u308a\u307e\u3059\u3002continue\u306e\u52d5\u4f5c\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u304ccontinue\u307e\u3067\u5230\u9054\u3059\u308b\u3068\u3001\u305d\u306e\u4e0b\u306b\u7d9a\u304f\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u3059\u3079\u3066\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u30eb\u30fc\u30d7\u306e\u6761\u4ef6\u5f0f\u307e\u3067\u623b\u308b\u3001\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u5b9f\u969b\u306b\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n$i = 0;\r\n\r\nwhile($i &lt; 5){\r\n\r\n    if($i == 3){\r\n        echo \"three!\";\r\n        $i++;\r\n        continue;\r\n    }\r\n    \r\n    echo $i;\r\n    $i++;\r\n}\r\n\r\n?&gt;<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">012three!4<\/pre>\n<p>\u30eb\u30fc\u30d7\u5185\u306e\u51e6\u7406\u306e\u6d41\u308c\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<p><div class=\"box01\">while\u306e\u6761\u4ef6\u5f0f\u3092\u78ba\u8a8d \u2192 $i = 0 &lt; 5 \u306a\u306e\u3067TRUE<br \/>\nif\u306e\u6761\u4ef6\u5f0f\u3092\u78ba\u8a8d \u2192$i = 0 == 3 \u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067FALSE<br \/>\nif\u306e\u4e2d\u8eab\u306f\u5b9f\u884c\u3057\u306a\u3044<br \/>\n$i\u3092\u8868\u793a<br \/>\n$i\u3092\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8 ($i = 1)<br \/>\nwhile\u306e\u6700\u5f8c\u307e\u3067\u6765\u305f\u306e\u3067\u6761\u4ef6\u5f0f\u306b\u623b\u308b<\/p>\n<p>\u30fb\u30fb\u30fb<\/p>\n<p>$i\u306b1\u3092\u8ffd\u52a0\u3057\u3066$i\u306b\u4ee3\u5165 ($i = 3)<br \/>\nwhile\u306e\u6700\u5f8c\u307e\u3067\u6765\u305f\u306e\u3067\u6761\u4ef6\u5f0f\u306b\u623b\u308b<br \/>\nwhile\u306e\u6761\u4ef6\u5f0f\u3092\u78ba\u8a8d \u2192 $i = 3 &lt; 5 \u306a\u306e\u3067TRUE<br \/>\nif\u306e\u6761\u4ef6\u5f0f\u3092\u78ba\u8a8d \u2192$i = 3 == 3 \u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067TRUE<br \/>\nif\u306e\u4e2d\u8eab\u3092\u5b9f\u884c\u3059\u308b<br \/>\nthree!\u3068\u8868\u793a<br \/>\n$i\u3092\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8 ($i = 4)<br \/>\ncontinue\u306b\u5230\u9054\u3057\u305f\u306e\u3067while\u306e\u6761\u4ef6\u5f0f\u307e\u3067\u623b\u308b<br \/>\nwhile\u306e\u6761\u4ef6\u5f0f\u3092\u78ba\u8a8d \u2192 $i = 4 &lt; 5 \u306a\u306e\u3067TRUE<br \/>\nif\u306e\u6761\u4ef6\u5f0f\u3092\u78ba\u8a8d \u2192$i = 4 == 3 \u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067FALSE<br \/>\nif\u306e\u4e2d\u8eab\u306f\u5b9f\u884c\u3057\u306a\u3044<\/p>\n<p>\u30fb\u30fb\u30fb<\/p>\n<p>\u6761\u4ef6\u5f0f\u304cFALSE\u306a\u306e\u3067\u3001while\u3092\u7d42\u4e86<br \/>\n\u30d7\u30ed\u30b0\u30e9\u30e0\u7d42\u4e86<\/div><\/p>\n<p>\u51e6\u7406\u30921\u500b1\u500b\u307f\u3066\u884c\u304f\u3068\u306a\u304b\u306a\u304b\u306e\u30dc\u30ea\u30e5\u30fc\u30e0\u3067\u3059\u304c\u3001\u305d\u308c\u305e\u308c\u306e\u51e6\u7406\u81ea\u4f53\u306f\u305d\u3053\u307e\u3067\u96e3\u3057\u304f\u306f\u306a\u3044\u306f\u305a\u3067\u3059\u3002\u4eca\u56de\u306f\u57fa\u672c\u3067\u7d39\u4ecb\u3057\u305fwhile\u30eb\u30fc\u30d7\u306b\u52a0\u3048\u3066\u3001if\u306e\u5206\u5c90\u304c\u767b\u5834\u3057\u307e\u3057\u305f\u3002if\u306e\u57fa\u672c\u7684\u306a\u90e8\u5206\u3084\u5fdc\u7528\u7684\u306a\u4f7f\u3044\u65b9\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304d\u305f\u3044\u65b9\u306f\u3053\u3061\u3089\u3082\u305c\u3072\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/22784\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/php_if_else-150x85.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010PHP\u5165\u9580\u3011if\u6587\u306b\u3088\u308b\u6761\u4ef6\u5206\u5c90\u306e\u4f7f\u3044\u65b9\u3092\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2025\u5e744\u670823\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<p>\u3055\u3066\u3001if\u306e\u4e2d\u8eab\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002if\u306e\u4e2d\u8eab\u306e\u51e6\u7406\u306f\u3001\u30ab\u30a6\u30f3\u30bf\u5909\u6570$i\u304c3\u3068\u7b49\u3057\u3044\u3068\u304d\u306fthree!\u3068\u8868\u793a\u3057\u3066\u3001$i\u3092\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3057\u3066\u3001continue\u3059\u308b\u3001\u3068\u3044\u3046\u52d5\u4f5c\u3067\u3059\u3002\u51e6\u7406\u304ccontinue\u306b\u5230\u9054\u3057\u305f\u3042\u3068\u306fwhile\u306e\u6761\u4ef6\u5f0f\u307e\u3067\u623b\u3063\u3066\u3044\u308b\u306e\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u304b\uff1f<\/p>\n<p>continue\u306fwhile\u306b\u9650\u3089\u305a\u4ed6\u306e\u30eb\u30fc\u30d7\u51e6\u7406\u3067\u3082\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30ec\u30d9\u30eb\u3092\u6307\u5b9a\u3059\u308b\u3068\u3044\u3046\u5fdc\u7528\u7684\u306a\u4f7f\u3044\u65b9\u3082\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u304c\u307e\u3068\u307e\u3063\u3066\u3044\u308b\u8a18\u4e8b\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u3088\u308a\u5b66\u3073\u3092\u6df1\u3081\u305f\u3044\u65b9\u306f\u3053\u3061\u3089\u3082\u76ee\u3092\u901a\u3057\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/22153\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/04\/image-3-2-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010PHP\u5165\u9580\u3011\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3092continue\u3067\u30b9\u30ad\u30c3\u30d7(foreach, for, while)<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h3>\u30eb\u30fc\u30d7\u306e\u51e6\u7406\u3092\u7d42\u4e86\u3059\u308bbreak<\/h3>\n<p>\u3053\u306e\u7ae0\u3067\u306f\u524d\u306e\u7ae0\u3067\u7d39\u4ecb\u3057\u305fcontinue\u3068\u4f3c\u305f\u6319\u52d5\u3092\u3059\u308bbreak\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002continue\u306f\u4e0b\u306b\u7d9a\u304f\u51e6\u7406\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u6761\u4ef6\u5f0f\u306e\u8a55\u4fa1\u306b\u98db\u3076\u51e6\u7406\u3067\u3057\u305f\u3002<\/p>\n<p>\u5bfe\u3059\u308bbreak\u306f\u5230\u9054\u3057\u305f\u6642\u70b9\u3067\u30eb\u30fc\u30d7\u3092\u7d42\u4e86\u3055\u305b\u308b\u51e6\u7406\u306b\u306a\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u304c3\u306b\u306a\u3063\u305f\u6642\u70b9\u3067\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u7d42\u308f\u3089\u305b\u305f\u3044\u3088\u3046\u306a\u5834\u9762\u3067\u3059\u306d\u3002\u3053\u3061\u3089\u3082\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n$i = 0;\r\n\r\nwhile($i &lt; 5){\r\n\r\n    if($i == 3){\r\n        echo \"three!\";\r\n        \r\n        break;\r\n    }\r\n    \r\n    echo $i;\r\n    $i++;\r\n}\r\n\r\n?&gt;<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">012three!<\/pre>\n<p>continue\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u307b\u307c\u540c\u3058\u3082\u306e\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002\u9055\u3044\u306fcontinue\u304cbreak\u306b\u5909\u308f\u3063\u305f\u3053\u3068\u3068\u3001\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u306e\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3092\u524a\u9664\u3057\u305f\u3053\u3068\u3067\u3059\u3002break\u306b\u5230\u9054\u3057\u305f\u6642\u70b9\u3067\u30eb\u30fc\u30d7\u51e6\u7406\u304c\u7d42\u4e86\u3059\u308b\u305f\u3081\u3001\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u3092\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3055\u305b\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u5b9f\u884c\u7d50\u679c\u306fcontinue\u306e\u3068\u304d\u3068\u9055\u3044three!\u3067\u6253\u3061\u5207\u3089\u308c\u30014\u304c\u767b\u5834\u3057\u307e\u305b\u3093\u3002\u30ab\u30a6\u30f3\u30bf\u5909\u6570$i\u304c3\u3067\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u7d42\u3048\u3066\u3044\u308b\u3001\u3068\u3044\u3046\u306e\u304c\u5b9f\u611f\u3067\u304d\u305f\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u3053\u3061\u3089\u3082\u30eb\u30fc\u30d7\u5185\u306e\u6d41\u308c\u3092\u6587\u7ae0\u3067\u66f8\u3044\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><div class=\"box01\">while\u306e\u6761\u4ef6\u5f0f\u3092\u78ba\u8a8d \u2192 $i = 0 &lt; 5 \u306a\u306e\u3067TRUE<br \/>\nif\u306e\u6761\u4ef6\u5f0f\u3092\u78ba\u8a8d \u2192$i = 0 == 3 \u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067FALSE<br \/>\nif\u306e\u4e2d\u8eab\u306f\u5b9f\u884c\u3057\u306a\u3044<br \/>\n$i\u3092\u8868\u793a<br \/>\n$i\u3092\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8 ($i = 1)<br \/>\nwhile\u306e\u6700\u5f8c\u307e\u3067\u6765\u305f\u306e\u3067\u6761\u4ef6\u5f0f\u306b\u623b\u308b<\/p>\n<p>\u30fb\u30fb\u30fb<\/p>\n<p>$i\u306b1\u3092\u8ffd\u52a0\u3057\u3066$i\u306b\u4ee3\u5165 ($i = 3)<br \/>\nwhile\u306e\u6700\u5f8c\u307e\u3067\u6765\u305f\u306e\u3067\u6761\u4ef6\u5f0f\u306b\u623b\u308b<br \/>\nwhile\u306e\u6761\u4ef6\u5f0f\u3092\u78ba\u8a8d \u2192 $i = 3 &lt; 5 \u306a\u306e\u3067TRUE<br \/>\nif\u306e\u6761\u4ef6\u5f0f\u3092\u78ba\u8a8d \u2192$i = 3 == 3 \u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067TRUE<br \/>\nif\u306e\u4e2d\u8eab\u3092\u5b9f\u884c\u3059\u308b<br \/>\nthree!\u3068\u8868\u793a<br \/>\nbreak\u306b\u5230\u9054\u3057\u305f\u306e\u3067while\u30eb\u30fc\u30d7\u3092\u7d42\u4e86<br \/>\n\u30d7\u30ed\u30b0\u30e9\u30e0\u7d42\u4e86<\/div><\/p>\n<p>continue\u3068\u9055\u3044\u3001break\u306b\u5230\u9054\u3057\u305f\u6642\u70b9\u3067\u30eb\u30fc\u30d7\u51e6\u7406\u304c\u7d42\u4e86\u3057\u305f\u306e\u304c\u5b9f\u611f\u3067\u304d\u307e\u3057\u305f\u304b\uff1f<\/p>\n<p>break\u3082continue\u3068\u540c\u69d8\u306b\u3001while\u4ee5\u5916\u306e\u30eb\u30fc\u30d7\u51e6\u7406\u3067\u3082\u5229\u7528\u3067\u304d\u307e\u3059\u3002\u30ec\u30d9\u30eb\u6307\u5b9a\u3082\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u3001\u3053\u308c\u3089\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u3066\u3042\u308b\u8a18\u4e8b\u304c\u3053\u3061\u3089\u306b\u306a\u308a\u307e\u3059\u3002\u7406\u89e3\u3092\u6df1\u3081\u305f\u3044\u65b9\u306f\u305c\u3072\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/22128\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/04\/image-39-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010PHP\u5165\u9580\u3011\u30eb\u30fc\u30d7\u3092break\u3067\u7d42\u4e86\u3059\u308b(foreach, for, while)<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h3>\u3053\u306e\u7ae0\u3067\u5b66\u3093\u3060\u3053\u3068\u30fb\u307e\u3068\u3081<\/h3>\n<p>\u5927\u5909\u9577\u3044\u7ae0\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3001\u3053\u306e\u7ae0\u3067\u5b66\u3093\u3060\u3053\u3068\u3092\u3082\u3046\u4e00\u5ea6\u307e\u3068\u3081\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h4>while\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/h4>\n<p>\u307e\u305a\u306f\u3058\u3081\u306bwhile\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3092\u5b66\u3073\u307e\u3057\u305f\u3002\u57fa\u672c\u7684\u306a\u66f8\u5f0f\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">while(\u6761\u4ef6\u5f0f){\r\n    \u30eb\u30fc\u30d7\u3055\u305b\u305f\u3044\u51e6\u7406;\r\n}<\/pre>\n<p>\u6761\u4ef6\u5f0f\u306f\u5f0f\u304c\u6b63\u3057\u3044\u304b\u9593\u9055\u3063\u3066\u3044\u308b\u304b\uff08\u771f\u304b\u507d\u304b\uff09\u3092\u5224\u65ad\u3057\u3066\u3001TRUE\u304bFALSE\u3092\u8fd4\u3059\u5f0f\u3067\u3057\u305f\u3002while\u306f\u6761\u4ef6\u5f0f\u304cTRUE\u306e\u9593\u30eb\u30fc\u30d7\u3057\u7d9a\u3051\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u306b\u3064\u3044\u3066\u5b66\u3073\u307e\u3057\u305f\u3002\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u306f\u30eb\u30fc\u30d7\u3054\u3068\u306b\u6570\u5024\u304c\u5909\u5316\u3059\u308b\u5909\u6570\u3067\u3001\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u304c\u7279\u5b9a\u306e\u5024\u306b\u306a\u3063\u305f\u3089\u30eb\u30fc\u30d7\u3092\u7d42\u4e86\u3059\u308b\u3001\u3068\u3044\u3046\u65b9\u6cd5\u3067\u5229\u7528\u3059\u308b\u3082\u306e\u3067\u3057\u305f\u3002<\/p>\n<p>\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u3092\u5909\u5316\u3055\u305b\u308b\u305f\u3081\u306e\u4fbf\u5229\u306a\u65b9\u6cd5\u3068\u3057\u3066\u3001\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u30fb\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\u3082\u5b66\u3073\u307e\u3057\u305f\u3002\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u306f$i++\u3001\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\u306f$i&#8211;\u306e\u3088\u3046\u306b\u66f8\u304d\u3001\u5909\u6570\u306e\u5024\u30921\u3060\u3051\u5897\u52a0\u30fb\u6e1b\u5c11\u3055\u305b\u308b\u3082\u306e\u3067\u3057\u305f\u3002<\/p>\n<h4>\u30b3\u30ed\u30f3\u69cb\u6587<\/h4>\n<p>\u30b3\u30ed\u30f3\u69cb\u6587\u306b\u3064\u3044\u3066\u3082\u5b66\u3073\u307e\u3057\u305f\u3002\u30b3\u30ed\u30f3\u69cb\u6587\u306f\u3001HTML\u306e\u5185\u90e8\u306b\u66f8\u304f\u3053\u3068\u306b\u306a\u308bPHP\u306e\u3067\u3001\u898b\u901a\u3057\u3092\u826f\u304f\u3059\u308b\u305f\u3081\u306b\u4f7f\u3046\u66f8\u304d\u65b9\u3067\u3057\u305f\u3002<\/p>\n<h4>continue\u3068break<\/h4>\n<p>continue\u3068break\u306b\u3064\u3044\u3066\u3082\u5b66\u7fd2\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u3089\u306f\u30eb\u30fc\u30d7\u5185\u90e8\u306b\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067\u6b21\u306e\u3088\u3046\u306b\u52d5\u4f5c\u3057\u307e\u3059<br \/>\n<div class=\"box01\"><\/p>\n<ul>\n<li><b>continue\uff1a\u4ee5\u4e0b\u306e\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u98db\u3070\u3057\u3066\u6761\u4ef6\u5f0f\u306b\u623b\u308b<\/b><\/li>\n<li><b>break\uff1a\u4ee5\u4e0b\u306e\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u98db\u3070\u3057\u3066\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u7d42\u4e86\u3055\u305b\u308b<\/b><\/li>\n<\/ul>\n<\/div>\n<p>continue\u3068break\u306fif\u306a\u3069\u306e\u6761\u4ef6\u5206\u5c90\u3068\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u67d4\u8edf\u306b\u5909\u5316\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>do-while\u306e\u4f7f\u3044\u65b9<\/h2>\n<p>\u3053\u306e\u7ae0\u3067\u306fwhile\u30eb\u30fc\u30d7\u306e\u4ef2\u9593\u3067\u3042\u308bdo-while\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u4eca\u56de\u3082\u516c\u5f0f\u30de\u30cb\u30e5\u30a2\u30eb\u3092\u3072\u3082\u3068\u304f\u5f62\u3067\u9032\u3081\u3066\u3044\u304f\u306e\u3067\u3001\u305c\u3072\u5225\u30bf\u30d6\u3067\u30de\u30cb\u30e5\u30a2\u30eb\u3092\u958b\u304d\u3064\u3064\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"http:\/\/php.net\/manual\/ja\/control-structures.while.php\" target=\"_blank\" rel=\"noopener noreferrer\">PHP\u516c\u5f0f\u30de\u30cb\u30e5\u30a2\u30eb\uff1awhile<\/a><\/p>\n<h3>do-while\u3068\u306f<\/h3>\n<p>do-while\u306fwhile\u3068\u307b\u307c\u540c\u3058\u50cd\u304d\u3092\u3059\u308b\u30eb\u30fc\u30d7\u51e6\u7406\u3067\u3059\u3002while\u30eb\u30fc\u30d7\u3068\u306e\u552f\u4e00\u306e\u9055\u3044\u306f\u3001<b>\u30eb\u30fc\u30d7\u5185\u90e8\u306e\u51e6\u7406\u304c\u6700\u4f4e1\u56de\u306f\u52d5\u4f5c\u3059\u308b\u3053\u3068\u304c\u4fdd\u8a3c\u3055\u308c\u3066\u3044\u308b<\/b>\u3053\u3068\u3002\u6587\u7ae0\u3060\u3051\u3067\u306f\u5c11\u3005\u308f\u304b\u308a\u306b\u304f\u3044\u306e\u3067\u3001\u66f8\u5f0f\u3068\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u306f\u66f8\u5f0f\u304b\u3089\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">do{\r\n    \u30eb\u30fc\u30d7\u51e6\u7406\r\n}while(\u6761\u4ef6\u5f0f);<\/pre>\n<p>while\u3068\u540c\u69d8\u306b\u56f3\u3067\u8868\u3059\u3068\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div id=\"attachment_85594\" style=\"width: 431px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-85594\" class=\"size-full wp-image-85594\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/do-whileLoop.jpg\" alt=\"\" width=\"421\" height=\"442\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/do-whileLoop.jpg 421w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/do-whileLoop-143x150.jpg 143w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/do-whileLoop-286x300.jpg 286w\" sizes=\"(max-width: 421px) 100vw, 421px\" \/><p id=\"caption-attachment-85594\" class=\"wp-caption-text\">do-while\u306e\u30a4\u30e1\u30fc\u30b8\u56f3<\/p><\/div>\n<p>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n$i = 0;\r\n\r\ndo{\r\n    echo $i;\r\n\r\n    $i = $i + 1;\r\n\r\n}while($i &lt; 5);\r\n\r\n?&gt;<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">01234<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\u3092\u898b\u3066\u3001\u300cwhile\u306e\u3068\u304d\u3068\u540c\u3058\u3058\u3083\u3093\uff01\u300d\u3068\u3044\u3046\u30c4\u30c3\u30b3\u30df\u304c\u6d6e\u304b\u3093\u3060\u65b9\u306f\u306a\u304b\u306a\u304b\u92ed\u3044\u3067\u3059\u3002\u305f\u3057\u304b\u306b\u3001\u5b9f\u884c\u7d50\u679c\u306fwhile\u3068do-while\u3067\u5168\u304f\u540c\u3058\u306a\u306e\u3067\u3059\u3002\u3067\u306f\u3001\u3069\u3046\u3084\u3063\u3066\u4f7f\u3044\u5206\u3051\u3092\u3059\u308c\u3070\u3044\u3044\u306e\u3067\u3057\u3087\u3046\u304b\uff1f\u305d\u308c\u306f\u6b21\u306e\u7bc0\u3067\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>do-whilw\u6587\u306e\u4f7f\u3044\u65b9<\/h3>\n<p>\u524d\u306e\u7bc0\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001while\u3068do-while\u306e\u5b9f\u884c\u7d50\u679c\u304c\u540c\u3058\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u3067\u306f\u3001\u3069\u3093\u306a\u5834\u9762\u3067\u3042\u308c\u3070do-while\u3092\u6d3b\u7528\u3067\u304d\u308b\u306e\u3067\u3057\u3087\u3046\u304b\u3002\u30dd\u30a4\u30f3\u30c8\u306f\u30eb\u30fc\u30d7\u5185\u90e8\u306e\u51e6\u7406\u304c\u6700\u4f4e1\u56de\u306f\u52d5\u4f5c\u3059\u308b\u3068\u3044\u3046\u90e8\u5206\u3067\u3059\u3002\u8a66\u3057\u306b\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n$i = 10;\r\n\r\ndo{\r\n    echo $i;\r\n\r\n    $i = $i + 1;\r\n}while($i &lt; 5);\r\n\r\n?&gt;<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">10<\/pre>\n<p>\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u3001\u5b9f\u306fwhile\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3067\u7d39\u4ecb\u3057\u305f\u3082\u306e\u3068\u307b\u307c\u540c\u3058\u3067\u3059\u3002\u9055\u3044\u306fwhile\u3068do-while\u3092\u53d6\u308a\u66ff\u3048\u305f\u3060\u3051\u3002<\/p>\n<p>while\u306e\u3068\u304d\u306f\u6700\u521d\u306e\u6761\u4ef6\u5f0f\u3067FALSE\u306b\u306a\u308b\u305f\u3081\u3001\u4f55\u3082\u8868\u793a\u3055\u308c\u306a\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3057\u305f\u3002\u3067\u3059\u304c\u3001\u4eca\u56de\u306fdo-while\u306e\u6700\u4f4e1\u56de\u306f\u52d5\u4f5c\u3059\u308b\u3068\u3044\u3046\u4ed5\u7d44\u307f\u306b\u3088\u308a\u3001\u6700\u521d\u306eecho\u304c\u5b9f\u884c\u3055\u308c\u3066$i\u306e\u4e2d\u8eab\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u51e6\u7406\u306e\u6d41\u308c\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<div class=\"box01\">\n<ul>\n<li><b>$i\u306b10\u3092\u4ee3\u5165<\/b><\/li>\n<li><b>$i = 10 \u3092\u8868\u793a<\/b><\/li>\n<li><b>$i\u306b1\u3092\u52a0\u3048\u3066$i\u306b\u4ee3\u5165<\/b><\/li>\n<li><b>while\u306e\u6761\u4ef6\u5f0f\u3092\u5224\u65ad \u2192 10 &lt; 5 \u306a\u306e\u3067FALSE\u3001while\u3092\u7d42\u4e86<\/b><\/li>\n<li><b>\u30d7\u30ed\u30b0\u30e9\u30e0\u7d42\u4e86<\/b><\/li>\n<\/ul>\n<\/div>\n<p>\u300c1\u56de\u3060\u3051\u52d5\u4f5c\u3059\u308b\u3053\u3068\u304c\u4fdd\u8a3c\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u306a\u3093\u306e\u5f79\u306b\u7acb\u3064\u306e\uff1f\u300d\u3068\u3044\u3046\u7591\u554f\u3092\u6301\u3064\u65b9\u3082\u3044\u308b\u3067\u3057\u3087\u3046\u3002\u305f\u3057\u304b\u306b\u3001\u662f\u304c\u975e\u3067\u3082do-while\u3092\u4f7f\u308f\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u5834\u9762\u3068\u3044\u3046\u306e\u306f\u5b58\u5728\u3057\u307e\u305b\u3093\u3002<\/p>\n<p>\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u3001\u30eb\u30fc\u30d7\u51e6\u7406\u306ffor\u3068while\u3067\u4e8b\u8db3\u308a\u307e\u3059\u3002do-while\u304c\u30bd\u30fc\u30b9\u306e\u898b\u901a\u3057\u3092\u60aa\u304f\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4f7f\u7528\u3092\u7981\u6b62\u3057\u3066\u3044\u308b\u73fe\u5834\u3082\u3042\u308b\u304f\u3089\u3044\u3067\u3059\u3057\u2026\u3002\u3067\u3059\u304c\u3001\u4ed6\u4eba\u304c\u66f8\u3044\u305f\u30b3\u30fc\u30c9\u3092\u8aad\u3080\u3068\u304d\u306a\u3069\u3067\u77e5\u3089\u306a\u3044\u3068\u3069\u3046\u3057\u3088\u3046\u3082\u306a\u3044\u77e5\u8b58\u3067\u3082\u3042\u308b\u305f\u3081\u3001\u3053\u3053\u3067\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><div id=\"attachment_85686\" style=\"width: 710px\" class=\"wp-caption alignnone\"><img decoding=\"async\" aria-describedby=\"caption-attachment-85686\" class=\"size-full wp-image-85686\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while4.jpg\" alt=\"\" width=\"700\" height=\"396\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while4.jpg 700w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while4-150x85.jpg 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while4-300x170.jpg 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while4-640x362.jpg 640w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><p id=\"caption-attachment-85686\" class=\"wp-caption-text\">[sc name=\"img-caption\"](\u5f15\u7528\u5143\uff1aGagoDesign\/shutterstock)[sc name=\"img-caption-end\"]<\/p><\/div>while\u3068\u540c\u3058\u304f\u3001\u3053\u3053\u307e\u3067\u901a\u8aad\u3044\u305f\u3060\u3051\u308b\u3068\u516c\u5f0f\u30de\u30cb\u30e5\u30a2\u30eb\u304c\u7121\u4e8b\u8aad\u307f\u89e3\u3051\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/php.net\/manual\/ja\/control-structures.do.while.php\" target=\"_blank\" rel=\"noopener noreferrer\">PHP\u516c\u5f0f\u30de\u30cb\u30e5\u30a2\u30eb\uff1ado-while<\/a><\/p>\n<p>\u306a\u304a\u3001\u5f8c\u308d\u306e\u6bb5\u843d\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308b\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u521d\u5fc3\u8005\u6bb5\u968e\u3067\u306f\u7121\u8996\u3057\u3066OK\u3067\u3059\u3002\u3068\u3044\u3046\u304b\u3001\u304b\u306a\u308a\u30c6\u30af\u30cb\u30ab\u30eb\u306a\u4f7f\u3044\u65b9\u306a\u306e\u3067\u3001\u3080\u3057\u308d\u7121\u8996\u63a8\u5968\u3067\u3059\u3002<\/p>\n<p>\u64ec\u4f3c\u7684\u306bgoto\u7684\u306a\u3053\u3068\u304c\u3067\u304d\u308b\u66f8\u304d\u65b9\u306a\u306e\u3067\u3059\u304c\u3001goto\u540c\u69d8\u4eba\u306b\u3088\u3063\u3066\u306f\u304b\u306a\u308a\u5acc\u308f\u308c\u3066\u3044\u308b\u66f8\u304d\u65b9\u3067\u3082\u3042\u308a\u307e\u3059\u3002\u8208\u5473\u306e\u3042\u308b\u65b9\u306f\u982d\u306e\u4f53\u64cd\u3060\u3068\u601d\u3063\u3066\u51e6\u7406\u306e\u6d41\u308c\u3092\u8003\u3048\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>while\u3068for\u306e\u4f7f\u3044\u5206\u3051<\/h2>\n<p>\u3053\u306e\u7ae0\u3067\u306f\u521d\u5b66\u8005\u306e\u65b9\u304c\u4e00\u5ea6\u306f\u5f15\u3063\u304b\u304b\u308b\u3067\u3042\u308d\u3046\u3001<strong>while\u3068for\u306e\u4f7f\u3044\u5206\u3051\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/strong><\/p>\n<h3>\u57fa\u672c\u304b\u3064\u67d4\u8edf\u306a\u30eb\u30fc\u30d7\u304c\u7d44\u307f\u3084\u3059\u3044while<\/h3>\n<p>\u307e\u305a\u306f\u4eca\u307e\u3067\u8aac\u660e\u3057\u3066\u304d\u305fwhile\u304b\u3089\u3067\u3059\u3002while\u306f\u30eb\u30fc\u30d7\u51e6\u7406\u306e\u57fa\u790e\u3068\u3082\u8a00\u3048\u308b\u5358\u7d14\u306a\u69cb\u9020\u3092\u3057\u3066\u3044\u307e\u3059\u3002\u6761\u4ef6\u5f0f\u304cTRUE\u306e\u3042\u3044\u3060\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u7d9a\u3051\u308b\u3068\u3044\u3046\u306e\u306f\u975e\u5e38\u306b\u30b7\u30f3\u30d7\u30eb\u3067\u3001\u305d\u306e\u5206\u67d4\u8edf\u306a\u904b\u7528\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304f\u3053\u3068\u3067\u3001\u30ab\u30f3\u30bf\u30f3\u306b\u7d42\u308f\u3089\u306a\u3044\u30eb\u30fc\u30d7\u3001\u3064\u307e\u308a\u7121\u9650\u30eb\u30fc\u30d7\u3092\u4f5c\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">while(TRUE){\r\n    \u30eb\u30fc\u30d7\u51e6\u7406\r\n}<\/pre>\n<p>\u7121\u9650\u30eb\u30fc\u30d7\u306b\u3064\u3044\u3066\u306f\u3053\u306e\u6b21\u306e\u7ae0\u3067\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u3055\u308f\u308a\u306e\u90e8\u5206\u3060\u3051\u8aac\u660e\u3059\u308b\u3068\u3001\u7121\u9650\u30eb\u30fc\u30d7\u306bcontinue\u3084break\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u4ed6\u306e\u30eb\u30fc\u30d7\u51e6\u7406\u3088\u308a\u3082\u30ab\u30f3\u30bf\u30f3\u306b\u67d4\u8edf\u306a\u6761\u4ef6\u8a2d\u5b9a\u30fb\u5206\u5c90\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u30eb\u30fc\u30d7\u306e\u56de\u6570\u3092\u6307\u5b9a\u305b\u305a\u3001\u4f55\u3089\u304b\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u304c\u8d77\u3053\u308b\u307e\u3067\u30eb\u30fc\u30d7\u3055\u305b\u308b\u3053\u3068\u304cwhile\u306f\u5f97\u610f\u306a\u306e\u3067\u3001\u56de\u6570\u4e0d\u5b9a\u306e\u30eb\u30fc\u30d7\u306fwhile\u3001\u306a\u3069\u3068\u3088\u304f\u8aac\u660e\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>1\u56de\u3060\u3051\u306f\u78ba\u5b9f\u306b\u5b9f\u884c\u3055\u305b\u305f\u3044\u3068\u304d\u306edo-while<\/h3>\n<p>do-while\u306e\u4f7f\u3044\u65b9\u3067\u3082\u51fa\u3066\u304d\u307e\u3057\u305f\u304c\u3001do-while\u3067\u306a\u3051\u308c\u3070\u8868\u73fe\u3067\u304d\u306a\u3044\u30eb\u30fc\u30d7\u3068\u3044\u3046\u306e\u306f\u57fa\u672c\u7684\u306b\u5b58\u5728\u3057\u307e\u305b\u3093\u3002\u306a\u306e\u3067\u3001\u300c\u30eb\u30fc\u30d7\u51e6\u7406\u306e\u6700\u4f4e1\u56de\u306e\u5b9f\u884c\u3092\u4fdd\u8a3c\u3057\u305f\u3044\u300d\u3068\u3044\u3046\u30d4\u30f3\u30dd\u30a4\u30f3\u30c8\u306a\u30b1\u30fc\u30b9\u4ee5\u5916\u3067\u4f7f\u3046\u3053\u3068\u306f\u307b\u3068\u3093\u3069\u306a\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h3>\u56de\u6570\u6307\u5b9a\u304c\u30ab\u30f3\u30bf\u30f3\u306b\u3067\u304d\u308bfor<\/h3>\n<p>PHP\u306e\u57fa\u672c\u7684\u306a\u30eb\u30fc\u30d7\u306fwhile\u306e\u4ed6\u306bfor\u304c\u3042\u308a\u307e\u3059\u3002<strong>while\u3068\u306e\u4f7f\u3044\u5206\u3051\u3067\u4e00\u756a\u60a9\u3080\u306e\u304cfor\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b<\/strong>\u3002\u60a9\u307e\u305a\u306b\u4f7f\u3044\u5206\u3051\u3089\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u305f\u3081\u306b\u306f\u3001\u305d\u308c\u305e\u308c\u306e\u7279\u5fb4\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u307e\u305a\u306f\u3001while\u3068for\u306e\u9055\u3044\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002for\u306f\u5f15\u6570\u306b\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u306e\u521d\u671f\u5024\u3001\u6761\u4ef6\u5f0f\u3001\u5897\u6e1b\u5f0f\u3092\u3068\u308a\u307e\u3059\u3002while\u3067\u306f\u521d\u671f\u5024\u306f\u30eb\u30fc\u30d7\u306e\u5916\u3067\u5b9a\u7fa9\u3057\u3001\u5897\u6e1b\u5f0f\u306f\u30eb\u30fc\u30d7\u5185\u90e8\u3067\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3092\u4f7f\u3046\u3053\u3068\u3067\u5b9f\u73fe\u3057\u3066\u3044\u307e\u3057\u305f\u3002for\u306e\u5834\u5408\u306f\u3053\u308c\u3089\u304c\u5f15\u6570\u3068\u3057\u3066\u30bb\u30c3\u30c8\u53ef\u80fd\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u304c\u5927\u304d\u306a\u9055\u3044\u3067\u3059\u3002<\/p>\n<p>\u521d\u671f\u5024\u3001\u6761\u4ef6\u5f0f\u3001\u5897\u6e1b\u5f0f\u306e3\u70b9\u30bb\u30c3\u30c8\u304c\u5f15\u6570\u306b\u4f7f\u3048\u308b\u305f\u3081\u3001for\u306f\u56de\u6570\u3092\u6307\u5b9a\u3057\u305f\u30eb\u30fc\u30d7\u3092\u4f5c\u308b\u306e\u304c\u5f97\u610f\u3067\u3059\u3002while\u3068\u306f\u9006\u306b\u56de\u6570\u304c\u7279\u5b9a\u3067\u304d\u308b\u30eb\u30fc\u30d7\u306ffor\u3001\u3068\u3044\u3063\u305f\u8aac\u660e\u304c\u3088\u304f\u306a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>while\u306f\u521d\u671f\u5024\u3084\u5897\u6e1b\u5f0f\u3092\u66f8\u304f\u5834\u6240\u306b\u3042\u308b\u7a0b\u5ea6\u306e\u81ea\u7531\u304c\u3042\u308a\u3001\u66f8\u304b\u306a\u3044\u3053\u3068\u3059\u3089\u53ef\u80fd\u3067\u3059\u3002\u9006\u306b\u521d\u671f\u5024\u3092\u8a2d\u5b9a\u3057\u5fd8\u308c\u305f\u308a\u3001\u5897\u6e1b\u5f0f\u3092\u66f8\u304d\u5fd8\u308c\u305f\u308a\u3059\u308b\u3053\u3068\u3082\u3042\u308b\u305f\u3081\u3001<strong>\u56de\u6570\u6307\u5b9a\u306b\u307e\u3064\u308f\u308b\u3046\u3063\u304b\u308a\u30df\u30b9\u304c\u8d77\u3053\u308a\u306b\u304f\u3044\u306e\u304cfor\u306e\u30e1\u30ea\u30c3\u30c8<\/strong>\u3067\u3042\u308a\u4f7f\u3046\u7406\u7531\u3068\u306a\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>for\u306b\u3064\u3044\u3066\u3055\u3089\u306b\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u65b9\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3082\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/22767\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/image-48-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010PHP\u5165\u9580\u3011\u7c21\u5358\uff01for\u6587\u306e\u4f7f\u3044\u65b9\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3088\u3046\uff01<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h3>\u914d\u5217\u306e\u53cd\u5fa9\u51e6\u7406\u306b\u4fbf\u5229\u306aforeach<\/h3>\n<p>foreach\u306f\u914d\u5217\u306e\u51e6\u7406\u306b\u7279\u5316\u3057\u305f\u30eb\u30fc\u30d7\u3067\u3059\u3002\u307e\u3060\u914d\u5217\u307e\u3067\u5b66\u7fd2\u304c\u9032\u3093\u3067\u3044\u306a\u3044\u65b9\u5411\u3051\u306b\u3056\u3063\u304f\u308a\u3068\u8aac\u660e\u3059\u308b\u3068\u3001\u914d\u5217\u306f\u8907\u6570\u306e\u5024\u3092\u4fdd\u6301\u3067\u304d\u308b\u5909\u6570\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002\u5185\u90e8\u306b\u8907\u6570\u306e\u5024\u3092\u6301\u3064\u305f\u3081\u3001\u4e00\u500b\u305a\u3064\u53d6\u308a\u51fa\u3057\u3066\u51e6\u7406\u3092\u884c\u3044\u305f\u3044\u3001\u3068\u3044\u3046\u9700\u8981\u304c\u3042\u308b\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u4e8b\u60c5\u304c\u3042\u308b\u305f\u3081\u3001foreach\u306f\u914d\u5217\u304b\u3089\u5024\u3092\u53d6\u308a\u3060\u3059\u306e\u306b\u975e\u5e38\u306b\u4fbf\u5229\u306b\u3067\u304d\u3066\u3044\u307e\u3059\u3002<strong>\u914d\u5217\u304b\u3089\u5024\u3092\u53d6\u308a\u51fa\u3059\u3068\u304d\u306f\u305c\u3072foreach\u3092\u4f7f\u3044\u307e\u3057\u3087\u3046<\/strong>\u3002foreach\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/22195\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/04\/php_foreach-150x85.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010PHP\u5165\u9580\u3011foreach\u6587\u306e\u57fa\u672c\u3092\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<p>\u5b9f\u306fforeach\u306f\u30eb\u30fc\u30d7\u51e6\u7406\u306e\u4e2d\u3067\u306f\u6bd4\u8f03\u7684\u65b0\u3057\u3044\u3082\u306e\u3067\u3001\u6614\u306fforeach\u305d\u306e\u3082\u306e\u304c\u5b58\u5728\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u305d\u306e\u3053\u308d\u306ffor\u3084while\u3092\u4f7f\u3063\u3066\u914d\u5217\u304b\u3089\u8981\u7d20\u3092\u53d6\u308a\u51fa\u3059\u65b9\u6cd5\u3092\u4f7f\u3063\u3066\u3044\u305f\u3093\u3067\u3059\u3002<\/p>\n<p>\u4eca\u3067\u3082\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u7df4\u7fd2\u3068\u3044\u3046\u3053\u3068\u3067while\u3092\u4f7f\u3063\u3066\u914d\u5217\u304b\u3089\u5024\u3092\u53d6\u308a\u51fa\u3059\u6a5f\u4f1a\u3082\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u6b21\u306e\u7bc0\u3067\u306fwhile\u3092\u3064\u304b\u3063\u3066\u914d\u5217\u304b\u3089\u5024\u3092\u3059\u3079\u3066\u53d6\u308a\u51fa\u3059\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h3>while\u3067\u914d\u5217\u306e\u5024\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5<\/h3>\n<p>\u524d\u7bc0\u3067\u3082\u66f8\u304d\u307e\u3057\u305f\u304c\u3001\u914d\u5217\u304b\u3089\u5024\u3092\u53d6\u5f97\u3057\u305f\u3044\u5834\u5408\u3001PHP\u3067\u306fforeach\u3092\u4f7f\u3046\u306e\u304c\u6700\u9069\u3067\u3059\u3002\u3067\u3059\u304c\u3001\u3069\u3046\u3057\u3066\u3082while\u3067\u51e6\u7406\u3057\u305f\u3044\u5834\u5408\u3082\u3042\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u306e\u3067\u3001\u3053\u3053\u3067\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>while\u3067\u914d\u5217\u306e\u5024\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\u3001count\u95a2\u6570\u3082\u4e00\u7dd2\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002count\u95a2\u6570\u306f\u914d\u5217\u306e\u8981\u7d20\u6570\u3092\u30ab\u30a6\u30f3\u30c8\u3057\u3066\u304f\u308c\u308b\u95a2\u6570\u3067\u3059\u3002while\u3067\u914d\u5217\u306e\u5024\u30921\u3064\u305a\u3064\u53d6\u5f97\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3053\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n\r\n$array = [\r\n         'value1',\r\n         'value2',\r\n         'value3',\r\n         'value4',\r\n         'value5'\r\n         ];\r\n\r\n\/\/count\u3067\u914d\u5217\u306e\u8981\u7d20\u6570\u3092\u53d6\u5f97\u3057\u3001\u5024\u3092$number\u306b\u4ee3\u5165\r\n\r\n$number = count($array);\r\n\r\n$i = 0;  \r\n\r\nwhile ($i &lt; $number){\r\n  echo $array[$i];\r\n\r\n  echo '&lt;br&gt;';\r\n  \r\n  $i++;\r\n}\r\n\r\n?&gt;<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">value1\r\nvalue2\r\nvalue3\r\nvalue4\r\nvalue5<\/pre>\n<p>\u3061\u306a\u307f\u306b\u3001\u5148\u307b\u3069\u304b\u3089\u4f55\u5ea6\u3082\u8a00\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u306e\u51e6\u7406\u81ea\u4f53\u306fforeach\u3092\u4f7f\u3046\u3053\u3068\u3067\u3088\u308a\u30b9\u30de\u30fc\u30c8\u306b\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002foreach\u306e\u30b5\u30f3\u30d7\u30eb\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n\r\n$array = [\r\n         'value1',\r\n         'value2',\r\n         'value3',\r\n         'value4',\r\n         'value5'\r\n         ];\r\n\r\nforeach ($array as $value){\r\n  echo $value;\r\n\r\n  echo '&lt;br&gt;';\r\n}\r\n\r\n?&gt;<\/pre>\n<p>while\u3092\u4f7f\u3046\u3088\u308a\u3082\u305a\u3063\u3068\u30b9\u30c3\u30ad\u30ea\u8a18\u8ff0\u3067\u304d\u3066\u3044\u307e\u3059\u306d\uff01<\/p>\n<h2>\u7121\u9650\u30eb\u30fc\u30d7\u3068while<\/h2>\n<p>\u3053\u306e\u7ae0\u3067\u306f\u7121\u9650\u30eb\u30fc\u30d7\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u307e\u305a\u306f\u3001\u305d\u3082\u305d\u3082\u8ad6\u304b\u3089\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<div id=\"attachment_85687\" style=\"width: 710px\" class=\"wp-caption alignnone\"><img decoding=\"async\" aria-describedby=\"caption-attachment-85687\" class=\"size-full wp-image-85687\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while5.jpg\" alt=\"\" width=\"700\" height=\"399\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while5.jpg 700w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while5-150x86.jpg 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while5-300x171.jpg 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while5-640x365.jpg 640w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><p id=\"caption-attachment-85687\" class=\"wp-caption-text\">[sc name=\"img-caption\"](\u5f15\u7528\u5143\uff1a Marish\/shutterstock)[sc name=\"img-caption-end\"]<\/p><\/div>\n<h3>\u305d\u3082\u305d\u3082\u7121\u9650\u30eb\u30fc\u30d7\u3068\u306f<\/h3>\n<p>\u7121\u9650\u30eb\u30fc\u30d7\u306f\u8a00\u8449\u306e\u901a\u308a\u3001\u7121\u9650\u306b\u7d9a\u3044\u3066\u3057\u307e\u3046\u30eb\u30fc\u30d7\u306e\u3053\u3068\u3067\u3059\u3002\u610f\u56f3\u7684\u306b\u7121\u9650\u30eb\u30fc\u30d7\u3092\u4f5c\u308b\u5834\u5408\u3082\u3042\u308b\u306b\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u591a\u304f\u306e\u5834\u5408\u3001\u610f\u56f3\u305b\u305a\u306b\u4f5c\u3063\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u307b\u3068\u3093\u3069\u3067\u3057\u3087\u3046\u3002\u610f\u56f3\u305b\u305a\u306b\u7121\u9650\u30eb\u30fc\u30d7\u3092\u4f5c\u3063\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306b\u5927\u304d\u306a\u8ca0\u8377\u304c\u304b\u304b\u3063\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\u591a\u304f\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u306f\u7121\u9650\u30eb\u30fc\u30d7\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3001\u5f37\u5236\u7684\u306b\u7d42\u4e86\u3059\u308b\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u305d\u3053\u307e\u3067\u904e\u5270\u306b\u6050\u308c\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h3>\u306a\u305c\u7121\u9650\u30eb\u30fc\u30d7\u306f\u5fc5\u8981\u306a\u306e\u304b\uff1f<\/h3>\n<p>\u3060\u3044\u305f\u3044\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306b\u5927\u304d\u306a\u8ca0\u8377\u3092\u639b\u3051\u308b\u3088\u3046\u306a\u51e6\u7406\u304c\u306a\u305c\u5fc5\u8981\u306a\u306e\u3067\u3057\u3087\u3046\u304b\uff1f\u305f\u3057\u304b\u306b\u3001\u7121\u9650\u30eb\u30fc\u30d7\u3060\u3051\u3060\u3068\u30eb\u30fc\u30d7\u51e6\u7406\u304c\u7d42\u308f\u3089\u306a\u3044\u305f\u3081\u3001\u307b\u307c\u610f\u5473\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3067\u3059\u304c\u3001\u7121\u9650\u30eb\u30fc\u30d7\u306b\u3044\u307e\u307e\u3067\u5b66\u3093\u3067\u304d\u305fcontinue\u3084break\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067<b>\u67d4\u8edf\u306a\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u5b9f\u73fe<\/b>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3093\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u6b21\u306e\u3088\u3046\u306a\u30eb\u30fc\u30d7\u51e6\u7406\u3067\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">while(TRUE){\r\n    \u30fb\u30fb\u30fb\r\n\r\n    if(\u6761\u4ef6\u5f0f){\r\n        \u7279\u5b9a\u306e\u6761\u4ef6\u4e0b\u3067\u306e\u51e6\u7406\r\n        break\r\n    }\r\n\r\n    \u30fb\u30fb\u30fb\r\n\r\n}<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306a\u69cb\u9020\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u7279\u5b9a\u306e\u6761\u4ef6\u304c\u767a\u751f\u3059\u308b\u307e\u3067\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u56de\u3057\u7d9a\u3051\u3001\u51e6\u7406\u3092\u5f85\u6a5f\u3059\u308b\u3044\u308f\u3086\u308b\u51e6\u7406\u5f85\u3061\u72b6\u614b\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6761\u4ef6\u304c\u305d\u308d\u3046\u307e\u3067\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u4f7f\u3063\u3066\u5f85\u6a5f\u3059\u308b\u3001\u3068\u3044\u3046\u5f62\u3067\u7121\u9650\u30eb\u30fc\u30d7\u306f\u5f79\u5272\u304c\u3042\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u3055\u3066\u3001\u51e6\u7406\u5f85\u3061\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u969b\u306b\u7d44\u3093\u3067\u307f\u3088\u3046\u3068\u3044\u3046\u65b9\u5411\u3051\u306b\u6ce8\u610f\u70b9\u30921\u3064\u3002\u51e6\u7406\u5f85\u3061\u3092\u7d44\u3080\u969b\u306fsleep\u7b49\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u3092\u9045\u5ef6\u3055\u305b\u308b\u65b9\u6cd5\u3092\u5b66\u3093\u3067\u304b\u3089\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4f55\u5ea6\u3082\u540c\u3058\u3053\u3068\u3092\u8a00\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u7121\u9650\u30eb\u30fc\u30d7\u306f\u51e6\u7406\u3092\u3059\u308b\u9593\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306b\u5927\u304d\u306a\u8ca0\u8377\u3092\u639b\u3051\u7d9a\u3051\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u4e00\u5b9a\u6642\u9593\u51e6\u7406\u3092\u4f11\u6b62\u3055\u305b\u308b\u3053\u3068\u3067\u3001\u8ca0\u8377\u3092\u8efd\u6e1b\u3059\u308b\u624b\u6bb5\u304c\u5fc5\u8981\u306b\u306a\u308b\u3093\u3067\u3059\u3002sleep\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/24014\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/image-42-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010PHP\u5165\u9580\u3011\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u3092\u4e00\u6642\u505c\u6b62\u3059\u308b\u65b9\u6cd5(sleep)<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<p>\u6b21\u7bc0\u3067\u306f\u610f\u56f3\u305b\u305a\u7121\u9650\u30eb\u30fc\u30d7\u304c\u3067\u304d\u3066\u3057\u307e\u3063\u305f\u6642\u3001\u3069\u306e\u3088\u3046\u306b\u5bfe\u5fdc\u3059\u308c\u3070\u3044\u3044\u306e\u304b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h3>\u610f\u56f3\u305b\u305a\u7121\u9650\u30eb\u30fc\u30d7\u304c\u3067\u304d\u3066\u3057\u307e\u3063\u305f\u3068\u304d\u306e\u5bfe\u51e6\u6cd5<\/h3>\n<p>\u3053\u306e\u7bc0\u3067\u7121\u9650\u30eb\u30fc\u30d7\u304c\u8d77\u304d\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u306e\u5bfe\u51e6\u6cd5\u3092\u899a\u3048\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002PHP\u306e\u52d5\u4f5c\u78ba\u8a8d\u306f\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u884c\u3063\u3066\u3044\u308b\u65b9\u304c\u591a\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u3059\u3079\u3066\u306e\u30d6\u30e9\u30a6\u30b6\u306b\u306f\u3001\u4e0b\u306e\u753b\u50cf\u306e\u3088\u3046\u306bWeb\u30da\u30fc\u30b8\u306e\u8aad\u307f\u8fbc\u307f\u3092\u505c\u6b62\u3055\u305b\u308b\u305f\u3081\u306e\u30dc\u30bf\u30f3\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div id=\"attachment_85660\" style=\"width: 400px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-85660\" class=\"size-full wp-image-85660\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/phpwhile1_2.jpg\" alt=\"\" width=\"390\" height=\"102\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/phpwhile1_2.jpg 390w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/phpwhile1_2-150x39.jpg 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/phpwhile1_2-300x78.jpg 300w\" sizes=\"(max-width: 390px) 100vw, 390px\" \/><p id=\"caption-attachment-85660\" class=\"wp-caption-text\">\u4f8b\uff1aGoogle Chrome\u306e\u8aad\u307f\u8fbc\u307f\u505c\u6b62\u30dc\u30bf\u30f3<\/p><\/div>\n<p>\u3053\u306e\u8aad\u307f\u8fbc\u307f\u505c\u6b62\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3053\u3068\u3067\u3001<b>PHP\u30d5\u30a1\u30a4\u30eb\u306e\u5b9f\u884c\u3092\u5f37\u5236\u7684\u306b\u6b62\u3081\u308b<\/b>\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u7dca\u6025\u6642\u306e\u5bfe\u51e6\u6cd5\u3068\u3057\u3066\u3001\u305c\u3072\u899a\u3048\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u306a\u304a\u3001Google Chrome\u306f\u518d\u8aad\u8fbc\u307f\u30dc\u30bf\u30f3\u3068\u8aad\u307f\u8fbc\u307f\u505c\u6b62\u30dc\u30bf\u30f3\u304c\u4e00\u4f53\u3068\u306a\u3063\u3066\u304a\u308a\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u4e2d\u306e\u307f\u8aad\u307f\u8fbc\u307f\u505c\u6b62\u30dc\u30bf\u30f3\u304c\u73fe\u308c\u307e\u3059\u3002\u3044\u3056\u3068\u3044\u3046\u3068\u304d\u306e\u305f\u3081\u306b\u3082\u3001\u81ea\u5206\u306e\u74b0\u5883\u3067\u306e\u5f37\u5236\u505c\u6b62\u65b9\u6cd5\u306f\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305f\u3001PHP\u306f\u6a19\u6e96\u306e\u4ed5\u69d8\u3068\u3057\u3066\u300130\u79d2\u4ee5\u4e0a\u540c\u3058\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u5f37\u5236\u7684\u306b\u6b62\u307e\u308b\u4ed5\u7d44\u307f\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u505c\u6b62\u65b9\u6cd5\u304c\u308f\u304b\u3089\u306a\u304f\u3066\u3082\u3001\u6700\u60aa30\u79d2\u5f85\u3066\u3070\u5f37\u5236\u7684\u306b\u6b62\u307e\u308b\u306e\u3067\u3001\u305d\u3053\u307e\u3067\u7121\u9650\u30eb\u30fc\u30d7\u3092\u6050\u308c\u308b\u3053\u3068\u3082\u306a\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h3>\u7121\u9650\u30eb\u30fc\u30d7\u3092\u89e3\u6d88\u3059\u308b\u305f\u3081\u306e\u30c1\u30a7\u30c3\u30af\u30dd\u30a4\u30f3\u30c8<\/h3>\n<p>\u3053\u306e\u7bc0\u3067\u306f\u610f\u56f3\u305b\u305a\u7121\u9650\u30eb\u30fc\u30d7\u304c\u3067\u304d\u3066\u3057\u307e\u3063\u305f\u969b\u306b\u3001\u7121\u9650\u30eb\u30fc\u30d7\u3092\u89e3\u6d88\u3059\u308b\u305f\u3081\u306b\u78ba\u8a8d\u3059\u3079\u304d\u30dd\u30a4\u30f3\u30c8\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h4>\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u306e$\u3092\u30c1\u30a7\u30c3\u30af<\/h4>\n<p>\u521d\u5fc3\u8005\u3067\u4e00\u756a\u3084\u308a\u304c\u3061\u306a\u306e\u304c\u3053\u306e\u30df\u30b9\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u7121\u9650\u30eb\u30fc\u30d7\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n$i = 0;\r\n\r\nwhile(i &lt; 5){\r\n    echo $i;\r\n\r\n    $i = $i + 1;\r\n}\r\n\r\n?&gt;<\/pre>\n<p>\u6b63\u78ba\u306b\u8a00\u3046\u3068\u3001\u6b21\u306e\u30a8\u30e9\u30fc\u304c\u7121\u9650\u306b\u51fa\u7d9a\u3051\u308b\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in C:xampphtdocssample_while.php on line XX\r\n0<\/pre>\n<p>\u521d\u3081\u3066\u3053\u308c\u3092\u898b\u308b\u3068\u3001\u306a\u304b\u306a\u304b\u30ae\u30e7\u30c3\u3063\u3068\u3057\u307e\u3059\u3088\u306d\u3002\u3053\u308c\u304c\u539f\u56e0\u3067\u30eb\u30fc\u30d7\u306b\u30c8\u30e9\u30a6\u30de\u3092\u6301\u3063\u3066\u3057\u307e\u3046\u65b9\u3082\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3055\u3066\u3001\u3053\u308c\u306f\u4f55\u304c\u9593\u9055\u3063\u3066\u3044\u305f\u306e\u304b\u3068\u3044\u3046\u3068\u3001\u30bf\u30a4\u30c8\u30eb\u306e\u901a\u308a\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u306b$\u304c\u4ed8\u3044\u3066\u3044\u306a\u3044\u3093\u3067\u3059\u3002while\u306e\u6761\u4ef6\u5f0f\u306e\u90e8\u5206\u3067\u3059\u306d\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">while(i &lt; 5){<\/pre>\n<p>i\u306b$\u304c\u4ed8\u3044\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u3053\u306ei\u306f\u5909\u6570\u3067\u306f\u306a\u304f\u3001\u672a\u5b9a\u7fa9\u306e\u5b9a\u6570\u3068\u307f\u306a\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002i\u306f\u672a\u5b9a\u7fa9\u306e\u5b9a\u6570\u2192\u6587\u5b57\u5217\u2192\u6570\u5024\u3068\u5909\u63db\u3055\u308c\u3066\u3044\u304d\u3001\u6700\u7d42\u7684\u306b0\u3068\u8a55\u4fa1\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u30020 &lt; 5\u306fTRUE\u3067\u3042\u308a\u3001\u5024\u304c\u5909\u5316\u3057\u306a\u3044\u305f\u3081\u3001\u7121\u9650\u30eb\u30fc\u30d7\u304c\u767a\u751f\u3057\u3066\u3044\u305f\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u89e3\u6c7a\u65b9\u6cd5\u306f\u30ab\u30f3\u30bf\u30f3\u3067\u3001i\u306b$\u3092\u3064\u3051\u308c\u3070\u5b8c\u4e86\u3067\u3059\u3002\u7121\u9650\u30eb\u30fc\u30d7\u3067\u30a8\u30e9\u30fc\u304c\u5927\u91cf\u306b\u51fa\u529b\u3055\u308c\u305f\u3068\u304d\u306f\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u306e$\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h4>\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u304cwhile\u5185\u90e8\u3067\u5909\u5316\u3057\u3066\u308b\u304b\u30c1\u30a7\u30c3\u30af<\/h4>\n<p>\u6b21\u306b\u78ba\u8a8d\u3057\u3066\u307b\u3057\u3044\u306e\u304c\u3001\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u304c\u5185\u90e8\u3067\u5909\u5316\u3057\u3066\u3044\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u6b21\u306e\u7121\u9650\u30eb\u30fc\u30d7\u3092\u8d77\u3053\u3059\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u3042\u3063\u305f\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n$i = 0;\r\n\r\nwhile($i &lt; 5){\r\n    echo $i;\r\n}\r\n\r\n?&gt;<\/pre>\n<p>\u5148\u7a0b\u306e\u4f8b\u3068\u9055\u3044\u3001\u4eca\u56de\u306f\u30a8\u30e9\u30fc\u304c\u51fa\u529b\u3055\u308c\u305a\u3001\u5ef6\u3005\u30680\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u7121\u9650\u30eb\u30fc\u30d7\u306e\u539f\u56e0\u306f\u3001\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u306e\u5897\u52a0\u3092\u8a18\u8ff0\u3057\u5fd8\u308c\u305f\u3053\u3068\u306b\u3042\u308a\u307e\u3059\u3002\u4eca\u56de\u306e\u4f8b\u3067\u306f\u30b5\u30f3\u30d7\u30eb\u306a\u306e\u3067\u308f\u308a\u3068\u3042\u304b\u3089\u3055\u307e\u306b\u66f8\u3044\u3066\u306a\u3044\u306e\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u3067\u3059\u304c\u3001while\u306f\u69cb\u9020\u4e0a\u30eb\u30fc\u30d7\u306e\u6700\u5f8c\u306b\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u306e\u5897\u6e1b\u51e6\u7406\u3092\u66f8\u304f\u3053\u3068\u304c\u591a\u3044\u305f\u3081\u3001\u66f8\u304d\u5fd8\u308c\u308b\u3053\u3068\u304c\u7d50\u69cb\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u7121\u9650\u30eb\u30fc\u30d7\u306b\u30cf\u30de\u3063\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u306f\u3001\u307e\u305a\u306f\u30eb\u30fc\u30d7\u672b\u5c3e\u306b\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u306e\u5897\u6e1b\u5f0f\u304c\u3042\u308b\u306e\u304b\u3057\u3063\u304b\u308a\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3046\u3063\u304b\u308a\u30df\u30b9\u3068\u3057\u3066\u3001\u5897\u6e1b\u5f0f\u3092\u30eb\u30fc\u30d7\u306e\u5916\u306b\u66f8\u3044\u3066\u3042\u308b\u30b1\u30fc\u30b9\u3082\u6642\u3005\u898b\u304b\u3051\u307e\u3059\u3002\u3042\u308f\u305b\u3066\u6c17\u3092\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u3002\u4eca\u56de\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4fee\u6b63\u65b9\u6cd5\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n$i = 0;\r\n\r\nwhile($i &lt; 5){\r\n    echo $i;\r\n\r\n    $i++;\r\n    \/\/$i\u306e\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3092\u8ffd\u52a0\r\n}\r\n\r\n?&gt;<\/pre>\n<h4>break\u306f\u6a5f\u80fd\u3057\u3066\u3044\u308b\u304b\u30c1\u30a7\u30c3\u30af<\/h4>\n<p>\u6700\u5f8c\u306b\u78ba\u8a8d\u3057\u3066\u304a\u304d\u305f\u3044\u306e\u304c\u3001break\u304c\u6a5f\u80fd\u3057\u3066\u3044\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u4eca\u56de\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n$i = 0;\r\n\r\nwhile(TRUE){\r\n\r\n    if($i == -3){\r\n        echo \"three!\";\r\n        \r\n        break;\r\n    }\r\n    \r\n    echo $i;\r\n    $i++;\r\n}\r\n\r\n?&gt;<\/pre>\n<p>while\u306e\u6761\u4ef6\u5f0f\u3092TRUE\u306b\u3057\u3066\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u884c\u3046\u5834\u5408\u3001break\u3092\u542b\u3080\u30d6\u30ed\u30c3\u30af\u304c\u7121\u9650\u30eb\u30fc\u30d7\u89e3\u6d88\u306e\u9375\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u3082\u305d\u3082break\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u308a\u3001break\u306e\u30d6\u30ed\u30c3\u30af\u306b\u5165\u308c\u306a\u3044\u3068\u7121\u9650\u30eb\u30fc\u30d7\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u306f\u3042\u308b\u7a2e\u5f53\u7136\u306e\u3053\u3068\u3002break\u30d6\u30ed\u30c3\u30af\u306e\u8a2d\u5b9a\u3068\u5165\u308b\u305f\u3081\u306e\u6761\u4ef6\u5f0f\u3092\u3057\u3063\u304b\u308a\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4eca\u56de\u306f\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u304c\u7d76\u5bfe\u306b\u53d6\u3089\u306a\u3044\u5024\u3092break\u306b\u5165\u308b\u305f\u3081\u306e\u6761\u4ef6\u5f0f\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u305f\u305f\u3081\u3001\u7121\u9650\u30eb\u30fc\u30d7\u304c\u767a\u751f\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u4fee\u6b63\u65b9\u6cd5\u306f\u3053\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n$i = 0;\r\n\r\nwhile(TRUE){\r\n\r\n    if($i == 3){\r\n        \/\/-3\u30923\u306b\u4fee\u6b63\r\n        echo \"three!\";\r\n        \r\n        break;\r\n    }\r\n    \r\n    echo $i;\r\n    $i++;\r\n}\r\n\r\n?&gt;<\/pre>\n<h2>while\u3092\u4f7f\u3063\u305f\u5fdc\u7528\u51e6\u7406<\/h2>\n<p>\u3055\u3066\u3001\u6700\u5f8c\u306bwhile\u3092\u4f7f\u3063\u305f\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u3044\u304f\u3064\u304b\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u5fdc\u7528\u51e6\u7406\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3053\u3053\u3067\u306f\u30cd\u30b9\u30c8\uff08\u5165\u308c\u5b50\uff09\u3068\u3044\u3046\u6280\u8853\u3082\u3042\u308f\u305b\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30cd\u30b9\u30c8\u3068\u306fwhile\u30eb\u30fc\u30d7\u306e\u4e2d\u306bwhile\u30eb\u30fc\u30d7\u3092\u5dee\u3057\u8fbc\u3080\u4f7f\u3044\u65b9\u3067\u3059\u3002<\/p>\n<p>\u66f8\u5f0f\u3068\u3057\u3066\u306f\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">while(\u6761\u4ef6\u5f0f1){\r\n\r\n    \u30eb\u30fc\u30d7\u51e6\u7406\r\n\r\n    while(\u6761\u4ef6\u5f0f2){\r\n        \u30eb\u30fc\u30d7\u51e6\u7406\r\n    }\r\n\r\n    \u30eb\u30fc\u30d7\u51e6\u7406\r\n}<\/pre>\n<p>\u898b\u3066\u5206\u304b\u308b\u901a\u308a\u3001\u30cd\u30b9\u30c8\u3092\u884c\u3046\u3053\u3068\u3067\u30eb\u30fc\u30d7\u306e\u69cb\u9020\u306f\u8907\u96d1\u306b\u306a\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u30cd\u30b9\u30c8\u306e\u4e2d\u306b\u3055\u3089\u306b\u30cd\u30b9\u30c8\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u539f\u7406\u4e0a\u3044\u304f\u3089\u3067\u3082\u30cd\u30b9\u30c8\u3092\u6df1\u304f\u3059\u308b\u3053\u3068\u306f\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\u6df1\u3044\u30cd\u30b9\u30c8\u306f\u51e6\u7406\u304c\u308f\u304b\u308a\u306b\u304f\u304f\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u969b\u306e\u5bfe\u5fdc\u3082\u9762\u5012\u306b\u306a\u3063\u3066\u304f\u308b\u306e\u3067\u3001\u5fc5\u8981\u304c\u306a\u3044\u9650\u308a\u306f<b>2\u304b\u30893\u91cd\u306e\u30cd\u30b9\u30c8\u3067\u6b62\u3081\u308b<\/b>\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002<\/p>\n<p>\u30cd\u30b9\u30c8\u3092\u5b66\u3076\u3053\u3068\u3067\u3067\u304d\u308b\u3053\u3068\u304c\u98db\u8e8d\u7684\u306b\u5e83\u304c\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u3064\u3044\u3064\u3044\u6df1\u3044\u30cd\u30b9\u30c8\u3092\u4f5c\u308a\u304c\u3061\u3067\u3059\u304c\u3001\u305c\u3072\u8aad\u307f\u3084\u3059\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3088\u3046\u5fc3\u304c\u3051\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u30cd\u30b9\u30c8\u3067\u4e5d\u4e5d\u306e\u8868\u3092\u4f5c\u308d\u3046<\/h3>\n<p>\u307e\u305a\u306f\u30eb\u30fc\u30d7\u3092\u4f7f\u3063\u3066\u4e5d\u4e5d\u306e\u8868\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u5185\u5074\u306e\u30eb\u30fc\u30d7\u3067\u639b\u3051\u7b97\u306e\u53f3\u5074\u306e\u6570\u5b57\u3092\u5909\u5316\u3055\u305b\u3064\u3064\u8a08\u7b97\u7d50\u679c\u3092\u8868\u793a\u3057\u3001\u5916\u5074\u306e\u30eb\u30fc\u30d7\u3067\u639b\u3051\u7b97\u306e\u5de6\u5074\u306e\u6570\u5b57\u3092\u5909\u5316\u3055\u305b\u308b\u3001\u3068\u3044\u3046\u6d41\u308c\u3067\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u5185\u5074\u306e\u30eb\u30fc\u30d7\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3059\u3002while\u3092\u4f7f\u3063\u30661 \uff5e 9\u3092\u8868\u793a\u3055\u305b\u308b\u3001\u3068\u3044\u3046\u51e6\u7406\u3067\u3059\u306d\u3002\u8a08\u7b97\u7d50\u679c\u306f\u6b21\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u305b\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">echo $x. \"\u00d7\". $y. \"\uff1d\". $x*$y. \"\u3000\";<\/pre>\n<p>\u3053\u308c\u306f\u6b21\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">$x\u00d7$y=$x*$y (\u30b9\u30da\u30fc\u30b9)<\/pre>\n<p>\u305d\u3057\u3066\u3001\u6bb5\u3068\u6bb5\u306e\u9593\u306b1\u884c\u6539\u884c\u3092\u5165\u308c\u305f\u3044\u306e\u3067\u3001\u6b21\u306e\u3088\u3046\u306b\u6539\u884c\u30bf\u30b0\u3092\u8868\u793a\u3055\u305b\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">echo \"&lt;br&gt;\";<\/pre>\n<p>\u3053\u3053\u307e\u3067\u3092\u307e\u3068\u3081\u308b\u3068\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">$y = 1;\r\n    while($y &lt;= 9){\r\n        echo $x. \"\u00d7\". $y. \"\uff1d\". $x*$y. \"\u3000\";\r\n\r\n        $y++;\r\n    }\r\necho \"&lt;br&gt;\";<\/pre>\n<p>\u3053\u308c\u3060\u3051\u3067$x\u306e\u521d\u671f\u5024\u3092\u8a2d\u5b9a\u3057\u3066\u3042\u3052\u308c\u3070x\u306e\u6bb5\u306e\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3042\u3068\u306f\u3001x\u30921 \uff5e 9\u307e\u3067\u5909\u5316\u3055\u305b\u308b\u3053\u3068\u30671\u306e\u6bb5\u304b\u30899\u306e\u6bb5\u307e\u3067\u306e\u4e5d\u4e5d\u306e\u8868\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n$x = 1;\r\n\r\nwhile($x &lt;= 9){\r\n\r\n    $y = 1;\r\n\r\n    while($y &lt;= 9){\r\n        echo $x. \"\u00d7\". $y. \"\uff1d\". $x*$y. \"\u3000\";\r\n\r\n        $y++;\r\n    }\r\n\r\n    echo \"&lt;br&gt;\";\r\n\r\n    $x++;\r\n}\r\n?&gt;<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">1\u00d71\uff1d1\u30001\u00d72\uff1d2\u30001\u00d73\uff1d3\u30001\u00d74\uff1d4\u30001\u00d75\uff1d5\u30001\u00d76\uff1d6\u30001\u00d77\uff1d7\u30001\u00d78\uff1d8\u30001\u00d79\uff1d9\u3000\r\n2\u00d71\uff1d2\u30002\u00d72\uff1d4\u30002\u00d73\uff1d6\u30002\u00d74\uff1d8\u30002\u00d75\uff1d10\u30002\u00d76\uff1d12\u30002\u00d77\uff1d14\u30002\u00d78\uff1d16\u30002\u00d79\uff1d18\u3000\r\n3\u00d71\uff1d3\u30003\u00d72\uff1d6\u30003\u00d73\uff1d9\u30003\u00d74\uff1d12\u30003\u00d75\uff1d15\u30003\u00d76\uff1d18\u30003\u00d77\uff1d21\u30003\u00d78\uff1d24\u30003\u00d79\uff1d27\u3000\r\n4\u00d71\uff1d4\u30004\u00d72\uff1d8\u30004\u00d73\uff1d12\u30004\u00d74\uff1d16\u30004\u00d75\uff1d20\u30004\u00d76\uff1d24\u30004\u00d77\uff1d28\u30004\u00d78\uff1d32\u30004\u00d79\uff1d36\u3000\r\n5\u00d71\uff1d5\u30005\u00d72\uff1d10\u30005\u00d73\uff1d15\u30005\u00d74\uff1d20\u30005\u00d75\uff1d25\u30005\u00d76\uff1d30\u30005\u00d77\uff1d35\u30005\u00d78\uff1d40\u30005\u00d79\uff1d45\u3000\r\n6\u00d71\uff1d6\u30006\u00d72\uff1d12\u30006\u00d73\uff1d18\u30006\u00d74\uff1d24\u30006\u00d75\uff1d30\u30006\u00d76\uff1d36\u30006\u00d77\uff1d42\u30006\u00d78\uff1d48\u30006\u00d79\uff1d54\u3000\r\n7\u00d71\uff1d7\u30007\u00d72\uff1d14\u30007\u00d73\uff1d21\u30007\u00d74\uff1d28\u30007\u00d75\uff1d35\u30007\u00d76\uff1d42\u30007\u00d77\uff1d49\u30007\u00d78\uff1d56\u30007\u00d79\uff1d63\u3000\r\n8\u00d71\uff1d8\u30008\u00d72\uff1d16\u30008\u00d73\uff1d24\u30008\u00d74\uff1d32\u30008\u00d75\uff1d40\u30008\u00d76\uff1d48\u30008\u00d77\uff1d56\u30008\u00d78\uff1d64\u30008\u00d79\uff1d72\u3000\r\n9\u00d71\uff1d9\u30009\u00d72\uff1d18\u30009\u00d73\uff1d27\u30009\u00d74\uff1d36\u30009\u00d75\uff1d45\u30009\u00d76\uff1d54\u30009\u00d77\uff1d63\u30009\u00d78\uff1d72\u30009\u00d79\uff1d81<\/pre>\n<h3>\u6570\u5b57\u3092\u30d4\u30e9\u30df\u30c3\u30c9\u578b\u306b\u8868\u793a\u3057\u3066\u307f\u3088\u3046<\/h3>\n<p>\u6b21\u306b\u7d39\u4ecb\u3059\u308b\u306e\u304c\u3001\u6570\u5b57\u3092\u30d4\u30e9\u30df\u30c3\u30c9\u578b\u306b\u306a\u3089\u3079\u308b\u65b9\u6cd5\u3067\u3059\u3002\u3053\u306e\u624b\u306e\u554f\u984c\u306f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u7df4\u7fd2\u554f\u984c\u3067\u6642\u3005\u898b\u304b\u3051\u307e\u3059\u306d\u3002\u30a4\u30e1\u30fc\u30b8\u3068\u3057\u3066\u306f\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">1\r\n22\r\n333\r\n4444\r\n\u30fb\u30fb\u30fb<\/pre>\n<p>\u3053\u3053\u3067\u306f\u8003\u3048\u65b9\u306e\u4e00\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u5916\u5074\u306e\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u3092$x\u3001\u5185\u5074\u306e\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u3092$y\u3068\u3057\u307e\u3059\u3002<strong>\u5916\u5074\u306e\u30eb\u30fc\u30d7\u3067\u884c\u306e\u6570\u3092\u6271\u3044\u3001\u5185\u5074\u306e\u30eb\u30fc\u30d7\u3067\u305d\u306e\u884c\u306b\u5fc5\u8981\u306a\u500b\u6570\u3092\u8868\u793a<\/strong>\u3055\u305b\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4eca\u56de\u3082\u5185\u5074\u306e\u30eb\u30fc\u30d7\u304b\u3089\u7d44\u307f\u7acb\u3066\u3066\u3044\u304d\u307e\u3059\u3002\u5185\u5074\u306e\u30eb\u30fc\u30d7\u3092\u7d44\u307f\u7acb\u3066\u308b\u969b\u306f\u5916\u5074\u306e\u30eb\u30fc\u30d7\u306e\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u3092\u56fa\u5b9a\u3059\u308b\u3068\u8003\u3048\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u306f$x = 3\u3068\u3057\u3066\u5185\u5074\u306e\u30eb\u30fc\u30d7\u3092\u8003\u3048\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u5185\u5074\u306e\u30eb\u30fc\u30d7\u306e\u4ed5\u4e8b\u306f$x\u306e\u6570\u3092$x\u500b\u4e26\u3079\u308b\u3053\u3068\u3067\u3059\u3002\u5177\u4f53\u4f8b\u3092\u4f7f\u3046\u3068\u30013\u30923\u500b\u4e26\u3079\u308c\u3070\u3044\u3044\u308f\u3051\u3067\u3059\u306d\u30023\u30923\u56de\u9023\u7d9a\u3067\u8868\u793a\u3055\u305b\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n\r\n$y = 0;\r\n\r\nwhile($y &lt; 3){\r\n    echo \"3\";\r\n\r\n    $y++;\r\n}\r\n\r\n?&gt;<\/pre>\n<p>\u3053\u3053\u3067\u30013\u3092$x\u306b\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u3067\u5916\u5074\u306e\u30eb\u30fc\u30d7\u3092\u3069\u3046\u7d44\u3081\u3070\u3044\u3044\u306e\u304b\u304c\u898b\u3048\u3066\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">$y = 0;\r\n\r\nwhile($y &lt; $x){\r\n    echo $x;\r\n\r\n    $y++;\r\n}<\/pre>\n<p>$x\u3054\u3068\u306b\u884c\u3092\u5909\u3048\u305f\u3044\u305f\u3081\u3001\u5185\u5074\u306e\u30eb\u30fc\u30d7\u306e\u5f8c\u308d\u306b\u6539\u884c\u30bf\u30b0\u304c\u5fc5\u8981\u3067\u3059\u306d\u3002\u3055\u3089\u306b\u3001$x\u3092\u5909\u5316\u3055\u305b\u308b\u305f\u3081\u306e\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3082\u8ffd\u52a0\u3057\u307e\u3059\u3002\u4ee5\u4e0a\u3092\u307e\u3068\u3081\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u51fa\u6765\u4e0a\u304c\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n$x = 1;\r\n\r\nwhile($x &lt; 10){\r\n    $y = 0;\r\n\r\n    while($y &lt; $x){\r\n        echo $x;\r\n\r\n        $y++;\r\n    }\r\n\r\n    echo \"&lt;br&gt;\";\r\n    $x++;\r\n}\r\n\r\n?&gt;<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">1\r\n22\r\n333\r\n4444\r\n55555\r\n666666\r\n7777777\r\n88888888\r\n999999999<\/pre>\n<p>\u4eca\u56de\u306f\u6570\u5b57\u3092\u4f7f\u3063\u305f\u306e\u306710\u4ee5\u964d\u306f\u30d4\u30e9\u30df\u30c3\u30c9\u578b\u304c\u82e5\u5e72\u5d29\u308c\u3066\u6c5a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u304c\u3001\uff0a\uff08\u30a2\u30b9\u30bf\u30ea\u30b9\u30af\uff09\u306a\u3069\u306e\u8a18\u53f7\u3092\u4f7f\u3046\u3068\u304d\u308c\u3044\u306a\u30d4\u30e9\u30df\u30c3\u30c9\u578b\u304c\u5ef6\u3005\u3068\u63cf\u3051\u307e\u3059\u3088\u3002\u3053\u306e\u624b\u306e\u554f\u984c\u306f\u5185\u5074\u306e\u30eb\u30fc\u30d7\u3068\u30b9\u30da\u30fc\u30b9\u306e\u4f7f\u3044\u65b9\u3092\u5de5\u592b\u3059\u308b\u3053\u3068\u3067\u3044\u308d\u3044\u308d\u306a\u5f62\u304c\u63cf\u3051\u307e\u3059\u3002\u8208\u5473\u306e\u3042\u308b\u65b9\u306f\u3044\u308d\u3044\u308d\u3068\u8a66\u3057\u3066\u307f\u308b\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3044\u304b\u304c\u3067\u3057\u305f\u304b\uff1f\u3000\u3053\u306e\u8a18\u4e8b\u3067\u306fPHP\u306ewhile\u306b\u3064\u3044\u3066<br \/>\n<div class=\"box01\"><\/p>\n<ul>\n<li><b>\u57fa\u672c\u7684\u306a\u69cb\u6587\u304b\u3089\u306f\u3058\u307e\u308a<\/b><\/li>\n<li><b>\u4ed6\u306e\u30eb\u30fc\u30d7\u6587\u3068\u306e\u4f7f\u3044\u5206\u3051<\/b><\/li>\n<li><b>\u7121\u9650\u30eb\u30fc\u30d7\u306e\u5bfe\u51e6\u6cd5<\/b><\/li>\n<li><b>\u5fdc\u7528\u7684\u306a\u4f7f\u3044\u65b9\u3092\u307e\u3068\u3081\u3066\u304d\u307e\u3057\u305f<\/b><\/li>\n<\/ul>\n<\/div>\n<p>\u6700\u5927\u9650\u30b9\u30e2\u30fc\u30eb\u30b9\u30c6\u30c3\u30d7\u306b\u3057\u3066\u3064\u307e\u305a\u304d\u3092\u6e1b\u3089\u305d\u3046\u3068\u3057\u305f\u7d50\u679c\u3001\u304b\u306a\u308a\u306e\u30dc\u30ea\u30e5\u30fc\u30e0\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u611f\u306f\u3042\u308a\u307e\u3059\u3002\u3059\u3079\u3066\u3092\u4e00\u6c17\u306b\u7406\u89e3\u3059\u308b\u306e\u306f\u306a\u304b\u306a\u304b\u5927\u5909\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u305c\u3072\u30d6\u30c3\u30af\u30de\u30fc\u30af\u3084\u304a\u6c17\u306b\u5165\u308a\u306b\u767b\u9332\u3057\u3066\u3044\u305f\u3060\u304d\u3001\u308f\u304b\u3089\u306a\u3044\u3053\u3068\u304c\u3042\u3063\u305f\u3089\u898b\u8fd4\u3059\u3088\u3046\u306a\u3001\u8f9e\u66f8\u7684\u306a\u4f7f\u3044\u65b9\u3092\u3057\u3066\u3082\u3089\u3048\u308b\u3068\u3001\u7b46\u8005\u3068\u3057\u3066\u3068\u3066\u3082\u5b09\u3057\u3044\u3067\u3059\u3002\u304a\u76f8\u624b\u306fPHP\u304c\u5fc3\u306e\u5e2b\u5320\u306a\u30c6\u30c3\u30af\u30e9\u30a4\u30bf\u30fc\u306e\u5e73\u5c71\u3067\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>while\u3001for\u3001foreach\u3001\u540c\u3058\u3088\u3046\u306a\u30eb\u30fc\u30d7\u306a\u306e\u306b\u3044\u304f\u3064\u3082\u3042\u308b\u610f\u5473\u304c\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u3002\u3072\u3068\u3064\u3060\u3051\u3067\u3044\u3044\u306e\u3067\u306f\uff1f \u306f\u3058\u3081\u307e\u3057\u3066\u3001\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u5e73\u5c71\u3067\u3059\u3002\u79c1\u306f\u904e\u53bb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306b\u632b\u6298\u3059\u308b\u3053\u30687\u56de\u3001\u306f\u3058\u3081\u3066 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":85666,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2348],"tags":[38],"class_list":["post-86014","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php-study","tag-php"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u521d\u5fc3\u8005\u306e\u306a\u305c\u3092\u4e00\u6319\u89e3\u6c7a!\u4eca\u3055\u3089\u805e\u3051\u306a\u3044PHPwhile\u306e\u57fa\u790e\u3068\u672c\u8cea | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u521d\u5fc3\u8005\u306e\u306a\u305c\u3092\u4e00\u6319\u89e3\u6c7a!\u4eca\u3055\u3089\u805e\u3051\u306a\u3044PHPwhile\u306e\u57fa\u790e\u3068\u672c\u8cea \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sejuku.net\/blog\/86014\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u521d\u5fc3\u8005\u306e\u306a\u305c\u3092\u4e00\u6319\u89e3\u6c7a!\u4eca\u3055\u3089\u805e\u3051\u306a\u3044PHPwhile\u306e\u57fa\u790e\u3068\u672c\u8cea | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u521d\u5fc3\u8005\u306e\u306a\u305c\u3092\u4e00\u6319\u89e3\u6c7a!\u4eca\u3055\u3089\u805e\u3051\u306a\u3044PHPwhile\u306e\u57fa\u790e\u3068\u672c\u8cea \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/86014\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/sejuku2013\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-02-15T05:51:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:54:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while_top.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/86014#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/86014\"},\"author\":{\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\"},\"headline\":\"\u521d\u5fc3\u8005\u306e\u306a\u305c\u3092\u4e00\u6319\u89e3\u6c7a!\u4eca\u3055\u3089\u805e\u3051\u306a\u3044PHPwhile\u306e\u57fa\u790e\u3068\u672c\u8cea\",\"datePublished\":\"2019-02-15T05:51:59+00:00\",\"dateModified\":\"2024-05-06T02:54:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/86014\"},\"wordCount\":668,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/86014#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/02\\\/php_while_top.jpg\",\"keywords\":[\"PHP\"],\"articleSection\":[\"PHP\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/86014\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/86014\",\"name\":\"\u521d\u5fc3\u8005\u306e\u306a\u305c\u3092\u4e00\u6319\u89e3\u6c7a!\u4eca\u3055\u3089\u805e\u3051\u306a\u3044PHPwhile\u306e\u57fa\u790e\u3068\u672c\u8cea | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/86014#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/86014#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/02\\\/php_while_top.jpg\",\"datePublished\":\"2019-02-15T05:51:59+00:00\",\"dateModified\":\"2024-05-06T02:54:19+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u521d\u5fc3\u8005\u306e\u306a\u305c\u3092\u4e00\u6319\u89e3\u6c7a!\u4eca\u3055\u3089\u805e\u3051\u306a\u3044PHPwhile\u306e\u57fa\u790e\u3068\u672c\u8cea \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/86014#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/86014\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/86014#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/02\\\/php_while_top.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/02\\\/php_while_top.jpg\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/86014#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u521d\u5fc3\u8005\u306e\u306a\u305c\u3092\u4e00\u6319\u89e3\u6c7a!\u4eca\u3055\u3089\u805e\u3051\u306a\u3044PHPwhile\u306e\u57fa\u790e\u3068\u672c\u8cea\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\"},\"description\":\"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\\\/Web\u958b\u767a\\\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\\\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\\\/\u30b2\u30fc\u30e0\u958b\u767a\\\/AI\\\/Web\u30c7\u30b6\u30a4\u30f3\",\"sameAs\":[\"https:\\\/\\\/www.sejuku.net\\\/\",\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\\\/\",\"https:\\\/\\\/www.instagram.com\\\/samuraiengineer_official\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\"],\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-blog\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u521d\u5fc3\u8005\u306e\u306a\u305c\u3092\u4e00\u6319\u89e3\u6c7a!\u4eca\u3055\u3089\u805e\u3051\u306a\u3044PHPwhile\u306e\u57fa\u790e\u3068\u672c\u8cea | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u521d\u5fc3\u8005\u306e\u306a\u305c\u3092\u4e00\u6319\u89e3\u6c7a!\u4eca\u3055\u3089\u805e\u3051\u306a\u3044PHPwhile\u306e\u57fa\u790e\u3068\u672c\u8cea \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sejuku.net\/blog\/86014","og_locale":"ja_JP","og_type":"article","og_title":"\u521d\u5fc3\u8005\u306e\u306a\u305c\u3092\u4e00\u6319\u89e3\u6c7a!\u4eca\u3055\u3089\u805e\u3051\u306a\u3044PHPwhile\u306e\u57fa\u790e\u3068\u672c\u8cea | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u521d\u5fc3\u8005\u306e\u306a\u305c\u3092\u4e00\u6319\u89e3\u6c7a!\u4eca\u3055\u3089\u805e\u3051\u306a\u3044PHPwhile\u306e\u57fa\u790e\u3068\u672c\u8cea \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/86014","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_author":"https:\/\/www.facebook.com\/sejuku2013\/","article_published_time":"2019-02-15T05:51:59+00:00","article_modified_time":"2024-05-06T02:54:19+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while_top.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/86014#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/86014"},"author":{"name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61"},"headline":"\u521d\u5fc3\u8005\u306e\u306a\u305c\u3092\u4e00\u6319\u89e3\u6c7a!\u4eca\u3055\u3089\u805e\u3051\u306a\u3044PHPwhile\u306e\u57fa\u790e\u3068\u672c\u8cea","datePublished":"2019-02-15T05:51:59+00:00","dateModified":"2024-05-06T02:54:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/86014"},"wordCount":668,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/86014#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while_top.jpg","keywords":["PHP"],"articleSection":["PHP\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/86014","url":"https:\/\/www.sejuku.net\/blog\/86014","name":"\u521d\u5fc3\u8005\u306e\u306a\u305c\u3092\u4e00\u6319\u89e3\u6c7a!\u4eca\u3055\u3089\u805e\u3051\u306a\u3044PHPwhile\u306e\u57fa\u790e\u3068\u672c\u8cea | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/86014#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/86014#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while_top.jpg","datePublished":"2019-02-15T05:51:59+00:00","dateModified":"2024-05-06T02:54:19+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u521d\u5fc3\u8005\u306e\u306a\u305c\u3092\u4e00\u6319\u89e3\u6c7a!\u4eca\u3055\u3089\u805e\u3051\u306a\u3044PHPwhile\u306e\u57fa\u790e\u3068\u672c\u8cea \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/86014#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/86014"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/86014#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while_top.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2019\/02\/php_while_top.jpg","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/86014#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u521d\u5fc3\u8005\u306e\u306a\u305c\u3092\u4e00\u6319\u89e3\u6c7a!\u4eca\u3055\u3089\u805e\u3051\u306a\u3044PHPwhile\u306e\u57fa\u790e\u3068\u672c\u8cea"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","caption":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8"},"description":"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\/Web\u958b\u767a\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\/\u30b2\u30fc\u30e0\u958b\u767a\/AI\/Web\u30c7\u30b6\u30a4\u30f3","sameAs":["https:\/\/www.sejuku.net\/","https:\/\/www.facebook.com\/sejuku2013\/","https:\/\/www.instagram.com\/samuraiengineer_official\/","https:\/\/x.com\/https:\/\/twitter.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g"],"url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-blog"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/86014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=86014"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/86014\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/85666"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=86014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=86014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=86014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}