
{"id":6140,"date":"2023-09-16T10:00:00","date_gmt":"2023-09-16T01:00:00","guid":{"rendered":"https:\/\/tetraup.com\/feed\/?p=6140"},"modified":"2025-07-27T16:08:41","modified_gmt":"2025-07-27T07:08:41","slug":"php-part8","status":"publish","type":"post","link":"https:\/\/tetraup.com\/news_topics\/column\/php-part8\/","title":{"rendered":"\u975e\u30a8\u30f3\u30b8\u30cb\u30a2\u3067\u3082\u77e5\u3089\u306a\u3044\u3068\u30e4\u30d0\u30a4PHP\u3000Part8\u301c\u6761\u4ef6\u5206\u5c90\u306b\u3064\u3044\u3066\u7406\u89e3\u3057\u3088\u3046\u301c"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"980\" height=\"700\" src=\"https:\/\/tetraup.com\/news_topics\/wp-content\/uploads\/2023\/09\/\u975e\u30a8\u30f3\u30b8\u30cb\u30a2\u3067\u3082\u77e5\u3089\u306a\u3044\u3068\u30e4\u30d0\u30a4PHP_Part8.jpg\" alt=\"\" class=\"wp-image-9029\"\/><\/figure>\n\n\n\n<p><a href=\"https:\/\/tetraup.com\/news_topics\/column\/php-part7\/\" title=\"\">\u524d\u56de<\/a>\u306fPHP\u306e\u914d\u5217\u306b\u3064\u3044\u3066\u8aac\u660e\u3044\u305f\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306fPHP\u306e\u6761\u4ef6\u5206\u5c90\uff08if\u6587\uff09\u306b\u3064\u3044\u3066\u8aac\u660e\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<br><div class=\"wp-block-button\"><a class=\"wp-block-button__link has-very-dark-gray-color has-light-green-cyan-background-color has-text-color has-background wp-element-button\" href=\"https:\/\/tetraup.com\/education\/trial-form\" style=\"border-radius:3px\" target=\"_blank\" rel=\"noreferrer noopener\">\u7121\u6599\u4f53\u9a13\u6388\u696d\u306e\u304a\u7533\u8fbc\u307f\u306f\u30b3\u30c1\u30e9<\/a><\/div><br>\n\n\n\n<h2 class=\"wp-block-heading\">\u6761\u4ef6\u5206\u5c90\u3068\u306f<\/h2>\n\n\n\n<p>\u6761\u4ef6\u5206\u5c90\u3068\u306f\u300c<strong>\u3042\u308b\u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u308b\uff08\u8ad6\u7406\u5024\u3067true\u3060\u3063\u305f\uff09\u304b\u3069\u3046\u304b\u306b\u3088\u3063\u3066\u3001\u6b21\u306b\u5b9f\u884c\u3059\u308b\u51e6\u7406\u3092\u5909\u5316\u3055\u305b\u308b<\/strong>\u300d\u3053\u3068\u3067\u3059\u3002PHP\u3067\u8a18\u8ff0\u3059\u308b\u5834\u5408\u306fif\u6587\u3068\u3044\u3046\u8a18\u6cd5\u3092\u7528\u3044\u307e\u3059\u3002\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9\u306f\u6b21\u306e\u69d8\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php\nif(\u6761\u4ef6){\n\u3000\u3000\u6761\u4ef6\u304c\u5f53\u3066\u306f\u307e\u308b\u5834\u5408\u306e\u51e6\u7406\n}\n?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(\u6761\u4ef6){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">\u3000\u3000\u6761\u4ef6\u304c\u5f53\u3066\u306f\u307e\u308b\u5834\u5408\u306e\u51e6\u7406<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u6b21\u304b\u3089\u8a73\u3057\u304f\u307f\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6761\u4ef6\u5206\u5c90\u306e\u4f5c\u6210\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u5177\u4f53\u4f8b\u3092\u307f\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\u65b0\u3057\u3044php\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u3066<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php\n$a = 1;\nif($a == 1){\n  print('a\u306f1\u3067\u3059\u3002');\n}\n?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$a<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #B5CEA8\">1<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">$a<\/span><span style=\"color: #D4D4D4\"> == <\/span><span style=\"color: #B5CEA8\">1<\/span><span style=\"color: #D4D4D4\">){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;a\u306f1\u3067\u3059\u3002&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3068\u5165\u529b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u5165\u529b\u7d42\u4e86\u5f8c\u30d6\u30e9\u30a6\u30b6\u306b\u8868\u793a\uff08\u30d6\u30e9\u30a6\u30b6\u306e\u8868\u793a\u65b9\u6cd5\u306f<a href=\"https:\/\/tetraup.com\/news_topics\/column\/php-part4\/\" title=\"\">\u3053\u3061\u3089<\/a>\uff09\u3055\u305b\u305f\u5834\u5408\u300ca\u306f1\u3067\u3059\u3002\u300d\u3068\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002\u3053\u308c\u306f$a == 1\u306e\u6761\u4ef6\u5f0f\u304c\u6b63\u3057\u3044\uff08true\uff09\u305f\u3081\u3001print\u95a2\u6570\u304c\u5b9f\u884c\u3055\u308c\u3066\u304a\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u8a18\u5165\u3057\u3066\u3044\u308b\u30a4\u30b3\u30fc\u30eb2\u3064\uff08==\uff09\u3067\u3059\u304c\u3001\u8ad6\u7406\u578b\uff08true\u3001false\uff09\u3092\u8fd4\u3059\u6f14\u7b97\u5b50\u3068\u306a\u308a\u307e\u3059\u3002<br>\u3067\u306f\u6b21\u306b<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php\n$a = 1;\nif($a == 2){\n  print('a\u306f2\u3067\u3059\u3002');\n}\n?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$a<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #B5CEA8\">1<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">$a<\/span><span style=\"color: #D4D4D4\"> == <\/span><span style=\"color: #B5CEA8\">2<\/span><span style=\"color: #D4D4D4\">){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;a\u306f2\u3067\u3059\u3002&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3068\u5165\u529b\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u306b\u518d\u5ea6\u53cd\u6620\u3055\u305b\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u6050\u3089\u304f\u4eca\u5ea6\u306f\u8868\u793a\u3055\u308c\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u5909\u6570a\u306b1\u304c\u4ee3\u5165\u3055\u308c\u3066\u3044\u308b\u72b6\u614b\u3067\u3001$a == 2\u306e\u6761\u4ef6\u5f0f\u304c\u6b63\u3057\u304f\u306a\u3044\uff08false\uff09\u305f\u3081\u3001print\u95a2\u6570\u304c\u5b9f\u884c\u3055\u308c\u306a\u304b\u3063\u305f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">if\u6587\u306e\u6761\u4ef6\u306b\u95a2\u3057\u3066\uff08true\/false\uff09<\/h2>\n\n\n\n<p>\u3055\u3066\u3001\u3053\u3053\u3067if\u6587\u3067\u306e\u300c\u6761\u4ef6\u300d\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u3053\u306e\u6761\u4ef6\u3067\u3059\u304c\u3001\u5224\u5b9a\u306f\u8ad6\u7406\u578b\uff08Boolean\uff09\u3067\u5b9f\u884c\u3044\u305f\u3057\u307e\u3059\uff08Boolean\u306e\u8aac\u660e\u306f<a href=\"https:\/\/tetraup.com\/news_topics\/column\/php-part6\/\" title=\"\">\u3053\u3061\u3089<\/a>\uff09\u3002\u6761\u4ef6\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\u304ctrue\uff08\u6b63\u3057\u3044\uff09\u306e\u5834\u5408{ }\uff08\u30ab\u30fc\u30ea\u30fc\u30d6\u30e9\u30b1\u30c3\u30c8\uff09\u306e\u4e2d\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u6761\u4ef6\u306e\u5b9f\u884c\u7d50\u679c\u304cfalse\uff08\u6b63\u3057\u304f\u306a\u3044\uff09\u306e\u5834\u5408\u3001{ }\u306e\u4e2d\u306e\u51e6\u7406\u306f\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3002\u8a66\u3057\u306b\u6b21\u3092\u5b9f\u884c\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php\n$a = true;\nif($a){\n  print('true\u3067\u3059\u3002');\n}\n?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$a<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #569CD6\">true<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">$a<\/span><span style=\"color: #D4D4D4\">){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;true\u3067\u3059\u3002&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u300ctrue\u3067\u3059\u3002\u300d\u3068\u30d6\u30e9\u30a6\u30b6\u306b\u8868\u793a\u3055\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u6b21\u306f<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php\n$a = false;\nif($a){\n  print('false\u3067\u3059\u3002');\n}\n?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$a<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #569CD6\">false<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">$a<\/span><span style=\"color: #D4D4D4\">){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;false\u3067\u3059\u3002&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u3061\u3089\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u3002\u4eca\u5ea6\u306f\u8868\u793a\u3055\u308c\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u5909\u6570a\u306bfalse\u304c\u4ee3\u5165\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001if\u6587\u3067\u8a18\u8f09\u3057\u3066\u3044\u308b( )\u5185\u306e\u6761\u4ef6\u306ffalse\u3068\u306a\u308a\u307e\u3059\u3002<br>\u3067\u306f\u3001\u6b21\u306f\u3069\u3046\u3067\u3057\u3087\u3046\uff1f<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php\n$a = false;\nif($a == false){\n  print('false\u3067\u3059\u3002');\n}\n?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$a<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #569CD6\">false<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">$a<\/span><span style=\"color: #D4D4D4\"> == <\/span><span style=\"color: #569CD6\">false<\/span><span style=\"color: #D4D4D4\">){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;false\u3067\u3059\u3002&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u4eca\u5ea6\u306f\u300cfalse\u3067\u3059\u3002\u300d\u3068\u8868\u793a\u3055\u308c\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u5909\u6570a\u306bfalse\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001if\u6587\u5185\u306e\u6761\u4ef6\u3067\u3042\u308b$a == false\u306f\u6b63\u3057\u3044\uff08true\uff09\u3067\u3059\u306d\u3002\u5f93\u3063\u3066\u3001\u6761\u4ef6\u5f0f\u5185\u304ctrue\u306e\u305f\u3081\u3001{ }\u5185\u306eprint\u95a2\u6570\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<br>\u3067\u306f\u6b21\u306f\u3069\u3046\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php\nif(0){\n  print('\u6761\u4ef6\u5f0f\u306e\u4e2d\u306f0\u3067\u3059\u3002');\n}\n?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;\u6761\u4ef6\u5f0f\u306e\u4e2d\u306f0\u3067\u3059\u3002&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u3061\u3089\u306f&#8230;\u5b9f\u306f\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002\u3053\u308c\u306f\u8ad6\u7406\u578b\uff08<a href=\"https:\/\/tetraup.com\/news_topics\/column\/php-part6\/\" title=\"\">\u3053\u3061\u3089<\/a>\uff09\u3067\u8aac\u660e\u3057\u307e\u3057\u305f\u304c\u3001<strong>\u300c0\uff08integer\uff09\u300d\u306f\u8ad6\u7406\u5024\u3067\u306ffalse\u304c\u8fd4\u5374\u3055\u308c\u307e\u3059<\/strong>\u3002\u5f93\u3063\u3066\u3001\u6761\u4ef6\u3082false\u304c\u683c\u7d0d\u3055\u308c\u3001print\u95a2\u6570\u304c\u5b9f\u884c\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<br><\/p>\n\n\n\n<p>\u4ed6\u306b\u3082&#8221;&#8221;\uff08\u7a7a\u306e\u6587\u5b57\u5217\uff09\u306a\u3069\u306e\u8ad6\u7406\u578b\u3067\u8aac\u660e\u3057\u305ffalse\u306b\u8a72\u5f53\u3059\u308b\u8ad6\u7406\u578b\u304c\u6761\u4ef6\u5f0f\u306b\u5165\u3063\u3066\u3044\u308b\u5834\u5408\u3001if\u6587\u306e{ }\u5185\u306e\u51e6\u7406\u306f\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6761\u4ef6\u5f0f\u304cfalse\u3067\u306e\u51e6\u7406\uff08! \u30d3\u30c3\u30af\u30ea\u30de\u30fc\u30af\u30fb\u30a8\u30af\u30b9\u30af\u30e9\u30e1\u30fc\u30b7\u30e7\u30f3\u30de\u30fc\u30af\uff09<\/h2>\n\n\n\n<p>\u5148\u307b\u3069\u306f\u6761\u4ef6\u5f0f\u304ctrue\u306e\u6642\u306e\u8aac\u660e\u3092\u3044\u305f\u3057\u307e\u3057\u305f\u3002\u3067\u306f\u3001\u6761\u4ef6\u5f0f\u304cfalse\uff08true\u300c\u4ee5\u5916\u300d\uff09\u306e\u5834\u5408\u3067\u3082\u51e6\u7406\u3092\u3057\u305f\u3044\u5834\u5408\u306f\u3069\u306e\u3088\u3046\u306b\u3059\u308c\u3070\u3088\u3044\u306e\u3067\u3057\u3087\u3046\u304b\u3002\u3053\u306e\u5834\u5408\u3001\u6761\u4ef6\u5f0f\u306e\u5148\u982d\u306b\u300c!\uff08\u30d3\u30c3\u30af\u30ea\u30de\u30fc\u30af\u30fb\u30a8\u30af\u30b9\u30af\u30e9\u30e1\u30fc\u30b7\u30e7\u30f3\u30de\u30fc\u30af\uff09\u300d\u3092\u5165\u529b\u3059\u308c\u3070\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\uff08\u534a\u89d2\u6587\u5b57\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\uff09\u3002<br>PHP\u3067\u306e\u300c!\u300d\u306f\u3001\u8ad6\u7406\u6f14\u7b97\u5b50\u306e\u300c\u5426\u5b9a\u300d\u3092\u8868\u3057\u307e\u3059\u3002\u5177\u4f53\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php\n$score = 1;\nif(!($score == 100)){\n  print(&quot;\u5909\u6570score\u306f100\u3067\u306f\u3042\u308a\u307e\u305b\u3093&quot;);\n}\n?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$score<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #B5CEA8\">1<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(!(<\/span><span style=\"color: #9CDCFE\">$score<\/span><span style=\"color: #D4D4D4\"> == <\/span><span style=\"color: #B5CEA8\">100<\/span><span style=\"color: #D4D4D4\">)){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&quot;\u5909\u6570score\u306f100\u3067\u306f\u3042\u308a\u307e\u305b\u3093&quot;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u306e\u5834\u5408\u3001if\u6587\u306e\u51e6\u7406\u306f\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002$score\u306b1\u304c\u4ee3\u5165\u3055\u308c\u3066\u3044\u308b\u305f\u3081$score == 100\u306ffalse\u3067\u3059\u304c\u3001!($score == 100)\u3068\u3059\u308b\u3053\u3068\u3067($score == 100)\u306efalse\u3092\u300c!\u300d\u3067\u5426\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a!($score == 100)\u3068\u8a18\u8f09\u3059\u308b\u3053\u3068\u3067\u3053\u3053\u306ftrue\u306b\u306a\u308a\u3001if\u6587\u306e\u4e2d\u306eprint\u95a2\u6570\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6761\u4ef6\u304ctrue\/false\u3067\u306e\u51e6\u7406\uff08else\uff09<\/h2>\n\n\n\n<p>\u3053\u308c\u307e\u3067\u306f\u300c\u3042\u308b\u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u308b\u5834\u5408(true)\u300d\u3060\u3051\u306e\u51e6\u7406\u3092\u300c!\u300d\u3082\u542b\u3081\u3066\u8aac\u660e\u3044\u305f\u3057\u307e\u3057\u305f\u3002\u3067\u306f\u300c\u3042\u308b\u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u305f\u5834\u5408\u3068\u6e80\u305f\u3055\u308c\u306a\u304b\u3063\u305f\u5834\u5408\u306e\u51e6\u7406\u300d\u306e2\u30d1\u30bf\u30fc\u30f3\u306e\u5206\u5c90\u3092\u3059\u308b\u51e6\u7406\u306f\u3069\u3046\u3059\u308c\u3070\u3088\u3044\u306e\u3067\u3057\u3087\u3046\u304b\u3002\u305d\u306e\u5834\u5408\u300celse\u300d\u3092\u7528\u3044\u307e\u3059\u3002\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php\nif(\u6761\u4ef6){\n  \u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u305f\u5834\u5408\u306e\u51e6\u7406\n} else {\n  \u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u306a\u304b\u3063\u305f\u5834\u5408\u306e\u51e6\u7406\n}\n?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(\u6761\u4ef6){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  \u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u305f\u5834\u5408\u306e\u51e6\u7406<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">} <\/span><span style=\"color: #C586C0\">else<\/span><span style=\"color: #D4D4D4\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  \u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u306a\u304b\u3063\u305f\u5834\u5408\u306e\u51e6\u7406<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u4e0a\u8a18\u306e\u901a\u308a\u3001\u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u305f\u5834\u5408\u306e\u51e6\u7406\u306e\u5f8c\u308d\u306b <strong>else { \u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u306a\u304b\u3063\u305f\u5834\u5408\u306e\u51e6\u7406 }<\/strong>\u3092\u8ffd\u52a0\u3059\u308c\u3070OK\u3067\u3059\u3002\u5177\u4f53\u4f8b\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php\n$score = 70;\nif($score &gt;= 75){\n  print('score\u306f75\u4ee5\u4e0a\u3067\u3059');\n} else {\n  print('score\u306f75\u672a\u6e80\u3067\u3059');\n}\n?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$score<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #B5CEA8\">70<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">$score<\/span><span style=\"color: #D4D4D4\"> &gt;= <\/span><span style=\"color: #B5CEA8\">75<\/span><span style=\"color: #D4D4D4\">){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;score\u306f75\u4ee5\u4e0a\u3067\u3059&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">} <\/span><span style=\"color: #C586C0\">else<\/span><span style=\"color: #D4D4D4\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;score\u306f75\u672a\u6e80\u3067\u3059&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u306e\u5834\u5408\u306felse\u5f8c\u306e\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002$score\u306b70\u304c\u4ee3\u5165\u3055\u308c\u3066\u304a\u308a\u3001$score &gt;= 75\u306ffalse\u3068\u306a\u308a\u307e\u3059\u3002\u3061\u306a\u307f\u306b$score\u306b75\u4ee5\u4e0a\u306e\u6570\u5024\uff08integer\uff09\u3092\u4ee3\u5165\u3059\u308c\u3070\u6761\u4ef6\u5f0f\u304ctrue\u3068\u306a\u308a\u3001print(&#8216;score\u306f75\u4ee5\u4e0a\u3067\u3059&#8217;)\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<br><div class=\"wp-block-button\"><a class=\"wp-block-button__link has-very-dark-gray-color has-light-green-cyan-background-color has-text-color has-background wp-element-button\" href=\"https:\/\/tetraup.com\/education\/trial-form\" style=\"border-radius:3px\" target=\"_blank\" rel=\"noreferrer noopener\">\u7121\u6599\u4f53\u9a13\u6388\u696d\u306e\u304a\u7533\u8fbc\u307f\u306f\u30b3\u30c1\u30e9<\/a><\/div><br>\n\n\n\n<h2 class=\"wp-block-heading\">3\u3064\u4ee5\u4e0a\u306e\u6761\u4ef6\u5206\u5c90\uff08else if(){}else{}\uff09<\/h2>\n\n\n\n<p>\u3055\u3066\u3001\u3053\u308c\u307e\u3067\u306f\u300c\u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u305f\u5834\u5408\u306e\u51e6\u7406\u306e\u5b9f\u884c\u300d\u300c\u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u305f\u5834\u5408\u3001\u307e\u305f\u306f\u6e80\u305f\u3055\u308c\u306a\u304b\u3063\u305f\u5834\u5408\u300d\u306eif\u6587\u3092\u3054\u7d39\u4ecb\u3057\u3066\u304d\u307e\u3057\u305f\u3002<br>\u6b21\u306f\u300c\u6761\u4ef6\u304c3\u3064\u4ee5\u4e0a\u3042\u3063\u305f\u5834\u5408\uff08\u8907\u6570\u6761\u4ef6\uff09\u306e\u6761\u4ef6\u5206\u5c90\u300d\u3092\u3054\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u3001else if(){}else{}\u3092\u7528\u3044\u307e\u3059\u3002\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php\nif(\u6761\u4ef61){\n  \u6761\u4ef61\u304c\u6e80\u305f\u3055\u308c\u308b\u5834\u5408\u306e\u51e6\u7406;\n} else if(\u6761\u4ef62){\n  \u6761\u4ef62\u304c\u6e80\u305f\u3055\u308c\u308b\u5834\u5408\u306e\u51e6\u7406;\n} else {\n  \u6761\u4ef61\u3082\u6761\u4ef62\u3082\u6e80\u305f\u3055\u308c\u306a\u304b\u3063\u305f\u5834\u5408\u306e\u51e6\u7406;\n}\n?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(\u6761\u4ef61){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  \u6761\u4ef61\u304c\u6e80\u305f\u3055\u308c\u308b\u5834\u5408\u306e\u51e6\u7406;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">} <\/span><span style=\"color: #C586C0\">else<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(\u6761\u4ef62){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  \u6761\u4ef62\u304c\u6e80\u305f\u3055\u308c\u308b\u5834\u5408\u306e\u51e6\u7406;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">} <\/span><span style=\"color: #C586C0\">else<\/span><span style=\"color: #D4D4D4\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  \u6761\u4ef61\u3082\u6761\u4ef62\u3082\u6e80\u305f\u3055\u308c\u306a\u304b\u3063\u305f\u5834\u5408\u306e\u51e6\u7406;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u4eca\u56de\u306f3\u3064\u306e\u6761\u4ef6\u3067\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001else if(){}else if(){}&#8230;\u3068\u7e4b\u3052\u308b\u3053\u3068\u3067\u3001\u6761\u4ef6\u3092\u3044\u304f\u3064\u3067\u3082\u8ffd\u52a0\u3057\u3066\u3044\u304f\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u3067\u306f\u5177\u4f53\u4f8b\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php\n$score = 55;\nif($score &gt;= 80){\n  print('\u512a');\n} else if($score &gt;= 70){\n  print('\u826f');\n} else if($score &gt;= 60){\n  print('\u53ef');\n} else {\n  print('\u4e0d\u53ef');\n}\n?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$score<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #B5CEA8\">55<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">$score<\/span><span style=\"color: #D4D4D4\"> &gt;= <\/span><span style=\"color: #B5CEA8\">80<\/span><span style=\"color: #D4D4D4\">){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;\u512a&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">} <\/span><span style=\"color: #C586C0\">else<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">$score<\/span><span style=\"color: #D4D4D4\"> &gt;= <\/span><span style=\"color: #B5CEA8\">70<\/span><span style=\"color: #D4D4D4\">){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;\u826f&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">} <\/span><span style=\"color: #C586C0\">else<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">$score<\/span><span style=\"color: #D4D4D4\"> &gt;= <\/span><span style=\"color: #B5CEA8\">60<\/span><span style=\"color: #D4D4D4\">){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;\u53ef&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">} <\/span><span style=\"color: #C586C0\">else<\/span><span style=\"color: #D4D4D4\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;\u4e0d\u53ef&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u306e\u5834\u5408\u300c\u4e0d\u53ef\u300d\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u4eca\u56de\u306e\u6761\u4ef6\u306f<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u300c$score\u304c80\u4ee5\u4e0a\u306e\u5834\u5408\u306f&#8217;\u512a&#8217;\u3092\u51fa\u529b\u300d<\/li>\n\n\n\n<li>\u300c$score\u304c70\u4ee5\u4e0a\u306e\u5834\u5408\u306f&#8217;\u826f&#8217;\u3092\u51fa\u529b\u300d<\/li>\n\n\n\n<li>\u300c$score\u304c60\u4ee5\u4e0a\u306e\u5834\u5408\u306f&#8217;\u53ef&#8217;\u3092\u51fa\u529b\u300d<\/li>\n\n\n\n<li>\u300c$score\u304c\u4e0a\u8a18\u4ee5\u5916\u306e\u5834\u5408\u306f&#8217;\u4e0d\u53ef&#8217;\u3092\u51fa\u529b\u300d<\/li>\n<\/ul>\n\n\n\n<p>\u306e\u51e6\u7406\u304c\u300c<strong>\u4e0a\u304b\u3089\u9806\u756a\u306b\u5b9f\u884c<\/strong>\u300d\u3055\u308c\u3066\u3044\u307e\u3059\uff08<strong>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u9806\u6b21\u51e6\u7406<\/strong>\uff09\u3002\u4eca\u56de$score\u306b\u306f55\u304c\u4ee3\u5165\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001$score &gt;= 80(false)\u3001$score &gt;= 70(false)\u3001$score &gt;= 60(false)\u304c\u78ba\u8a8d\u3055\u308c\u305f\u5f8c\u3001\u3069\u306e\u6761\u4ef6\u3082\u6e80\u305f\u3055\u308c\u306a\u304b\u3063\u305f\u7d50\u679c\u3001\u6700\u5f8c\u306eelse{ }\u5185\u306eprint\u95a2\u6570\u304c\u5b9f\u884c\u3055\u308c\u300c\u4e0d\u53ef\u300d\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u4e0a\u8a18\u306e\u5834\u5408\u3001$score\u306b80\u4ee5\u4e0a\u304c\u4ee3\u5165\u3055\u308c\u3066\u3044\u308c\u3070\u300c\u512a\u300d\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u6761\u4ef6\u5206\u5c90\u3068\u9806\u6b21\u51e6\u7406\uff08else if(){} else {}\uff09<\/h3>\n\n\n\n<p>\u3067\u306f\u3001\u6b21\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php\n$score = 95;\nif($score &gt;\uff1d 60){\n  print('\u53ef');\n} else if($score &gt;\uff1d 70){\n  print('\u826f');\n} else if($score &gt;\uff1d 80){\n  print('\u512a');\n} else {\n  print('\u4e0d\u53ef');\n}\n?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$score<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #B5CEA8\">95<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">$score<\/span><span style=\"color: #D4D4D4\"> &gt;\uff1d <\/span><span style=\"color: #B5CEA8\">60<\/span><span style=\"color: #D4D4D4\">){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;\u53ef&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">} <\/span><span style=\"color: #C586C0\">else<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">$score<\/span><span style=\"color: #D4D4D4\"> &gt;\uff1d <\/span><span style=\"color: #B5CEA8\">70<\/span><span style=\"color: #D4D4D4\">){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;\u826f&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">} <\/span><span style=\"color: #C586C0\">else<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">$score<\/span><span style=\"color: #D4D4D4\"> &gt;\uff1d <\/span><span style=\"color: #B5CEA8\">80<\/span><span style=\"color: #D4D4D4\">){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;\u512a&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">} <\/span><span style=\"color: #C586C0\">else<\/span><span style=\"color: #D4D4D4\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;\u4e0d\u53ef&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><code><br><\/code>$score\u306f80\u4ee5\u4e0a\u3067\u3059\u304c\u300c\u53ef\u300d\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u671f\u5f85\u3059\u308b\u6319\u52d5\u3068\u3057\u3066\u306f\u300c\u512a\u300d\u306e\u8868\u793a\u3067\u3059\u3002\u3053\u306e\u539f\u56e0\u306f\u3001\u5148\u307b\u3069\u8a18\u8f09\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u9806\u6b21\u51e6\u7406\u3068\u95a2\u4fc2\u304c\u3042\u308a\u307e\u3059\u3002\u4eca\u56de\u306eif\u6587\u306f\u6700\u521d\u306e\u6761\u4ef6\u306b$score &gt;= 60\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u300c$score = 95\u306f$score &gt;=60\u300d\u306a\u306e\u3067\u6700\u521d\u306e\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002if\u6587\u306f\u3001\u6761\u4ef6\u304c\u5f53\u3066\u306f\u307e\u3063\u305f\u6bb5\u968e\u3067if\u6587\u306e\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u300c<strong>\u5f8c\u306e\u51e6\u7406\u306f\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093<\/strong>\u300d\u3002\u5f93\u3063\u3066\u4eca\u56de\u306e\u6761\u4ef6\u5206\u5c90\u3067\u306f\u300c\u53ef\u300d\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\uff08\u305b\u3063\u304b\u304f\u9ad8\u3044score\u306a\u306e\u306b&#8230;\uff09\u3002<\/p>\n\n\n\n<p><br>\u3053\u306e\u3053\u3068\u304b\u3089\u3001if\u6587\u3092\u542b\u3080\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u51e6\u7406\u306f\u300c<strong>\u9806\u756a<\/strong>\u300d\u3092\u8003\u616e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u8003\u3048\u65b9\u3068\u3057\u3066\u306f\u3001\u6761\u4ef6\u306e\u53b3\u3057\u3044\u3082\u306e\u304b\u3089\u9806\u756a\u306b\u51e6\u7406\u3092\u5b9f\u884c\u3057\u3001\u6700\u5f8c\u306b\u6700\u3082\u6761\u4ef6\u304c\u7518\u3044\u6761\u4ef6\u3092\u5b9f\u884c\u3059\u308b\u69d8\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3068\u3001\u671f\u5f85\u3059\u308b\u6319\u52d5\u304c\u8fd4\u3063\u3066\u304f\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8907\u6570\u6761\u4ef6\uff08if\u6587\u306e\u5165\u308c\u5b50\u30fb\u30cd\u30b9\u30c8\uff09<\/h2>\n\n\n\n<p>\u3055\u3066\u3001\u3053\u308c\u307e\u3067\u306f\u8907\u6570\u306e\u6761\u4ef6\u5206\u5c90\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u3066\u304d\u307e\u3057\u305f\u3002\u3053\u3053\u3067\u306f\u8907\u6570\u306e\u6761\u4ef6\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u300c\u6771\u4eac\u90fd\u306b\u304a\u4f4f\u307e\u3044\u306e\u300120\u6b73\u4ee5\u4e0a\u306e\u304a\u5ba2\u69d8\u9650\u5b9a\u306e\u5546\u54c1\u300d\u304c\u3042\u3063\u305f\u3068\u3057\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u300c\u6771\u4eac\u306b\u304a\u4f4f\u307e\u3044\u300d\u3068\u300c20\u6b73\u4ee5\u4e0a\u300d\u306e<strong>\u4e21\u65b9\uff08\u8907\u6570\uff09\u306e\u6761\u4ef6<\/strong>\u3092\u6e80\u305f\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u69d8\u306b\u8907\u6570\u306e\u6761\u4ef6\u304c\u3042\u308b\u5834\u5408\u3001\u5165\u308c\u5b50\uff08\u30cd\u30b9\u30c8\uff09\u3092\u7528\u3044\u308b\u3053\u3068\u3067\u8868\u73fe\u304c\u53ef\u80fd\u3067\u3059\u3002\u5165\u308c\u5b50\u306e\u66f8\u304d\u65b9\u306f\u3001\u6b21\u306e\u69d8\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php\nif(\u6761\u4ef61){\n  if(\u6761\u4ef62){\n    \u6761\u4ef61\u304ctrue\u304b\u3064\u3001\u6761\u4ef62\u3082true\u306e\u6642\u306e\u51e6\u7406\n  }\n}\n?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(\u6761\u4ef61){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(\u6761\u4ef62){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    \u6761\u4ef61\u304ctrue\u304b\u3064\u3001\u6761\u4ef62\u3082true\u306e\u6642\u306e\u51e6\u7406<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>if\u6587\u306e\u4e2d\u306bif\u6587\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u306d\u3002\u3053\u306e\u69d8\u306b\u300c\u3042\u308b\u69cb\u9020\u306e\u5185\u90e8\u306b\u540c\u3058\u69cb\u9020\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u72b6\u614b\u300d\u306e\u3053\u3068\u3092\u5165\u308c\u5b50\uff08\u30cd\u30b9\u30c8\uff09\u3068\u8868\u73fe\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><br>\u6761\u4ef61\u304ctrue\u306e\u6642\u306b\u6700\u521d\u306e{ }\u306e\u4e2d\u306e\u51e6\u7406\u306b\u79fb\u308a\u307e\u3059\u3002{ }\u306e\u4e2d\u306bif(\u6761\u4ef62){ }\u304c\u3042\u308b\u306e\u3067\u3001\u4eca\u5ea6\u306f\u6761\u4ef62\u306e\u8ad6\u7406\u5024\u304c\u78ba\u8a8d\u3055\u308c\u307e\u3059\u3002\u6761\u4ef62\u304ctrue\u3060\u3063\u305f\u5834\u5408\u3001if(\u6761\u4ef62){ }\u306e\u4e2d\u306e\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306b\u66f8\u304f\u3053\u3068\u3067\u3001\u8907\u6570\u6761\u4ef6\u306eif\u6587\u3092\u66f8\u304f\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<br>\u3055\u3066\u3001\u4ee5\u4e0a\u3092\u8e0f\u307e\u3048\u3066\u4f8b\u3048\u8a71\u306b\u623b\u308a\u307e\u3059\u3002\u5148\u7a0b\u306e\u6761\u4ef6\u306b\u5f53\u3066\u306f\u307e\u308b\u4eba\u3092\u3042\u3089\u304b\u3058\u3081\u7528\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3001\u8a72\u5f53\u3059\u308b$member\u5909\u6570\u3082\u914d\u5217\u3067\u7528\u610f\u3044\u305f\u3057\u307e\u3059\uff08\u914d\u5217\u306b\u95a2\u3057\u3066\u306f<a href=\"https:\/\/tetraup.com\/news_topics\/column\/php-part7\/\" title=\"\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u7167\uff09\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php\n$member = array(\n  'name' =&gt; '\u592a\u90ce',\n  'gender' =&gt; '\u7537\u6027',\n  'age' =&gt; 20,\n  'address' =&gt; '\u6771\u4eac\u90fd',\n);\nif($member['address'] == '\u6771\u4eac\u90fd'){\n  if($member['age'] &gt;= 20){\n    print('\u9650\u5b9a\u5546\u54c1\u306e\u8cfc\u5165\u304c\u53ef\u80fd\u3067\u3059\uff01');\n  }\n}\n?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$member<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #DCDCAA\">array<\/span><span style=\"color: #D4D4D4\">(<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #CE9178\">&#39;name&#39;<\/span><span style=\"color: #D4D4D4\"> =&gt; <\/span><span style=\"color: #CE9178\">&#39;\u592a\u90ce&#39;<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #CE9178\">&#39;gender&#39;<\/span><span style=\"color: #D4D4D4\"> =&gt; <\/span><span style=\"color: #CE9178\">&#39;\u7537\u6027&#39;<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #CE9178\">&#39;age&#39;<\/span><span style=\"color: #D4D4D4\"> =&gt; <\/span><span style=\"color: #B5CEA8\">20<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #CE9178\">&#39;address&#39;<\/span><span style=\"color: #D4D4D4\"> =&gt; <\/span><span style=\"color: #CE9178\">&#39;\u6771\u4eac\u90fd&#39;<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">$member<\/span><span style=\"color: #D4D4D4\">[<\/span><span style=\"color: #CE9178\">&#39;address&#39;<\/span><span style=\"color: #D4D4D4\">] == <\/span><span style=\"color: #CE9178\">&#39;\u6771\u4eac\u90fd&#39;<\/span><span style=\"color: #D4D4D4\">){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">$member<\/span><span style=\"color: #D4D4D4\">[<\/span><span style=\"color: #CE9178\">&#39;age&#39;<\/span><span style=\"color: #D4D4D4\">] &gt;= <\/span><span style=\"color: #B5CEA8\">20<\/span><span style=\"color: #D4D4D4\">){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;\u9650\u5b9a\u5546\u54c1\u306e\u8cfc\u5165\u304c\u53ef\u80fd\u3067\u3059\uff01&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u306e\u69d8\u306b\u66f8\u304f\u3053\u3068\u3067\u3001\u300c\u6771\u4eac\u306b\u304a\u4f4f\u307e\u3044\u300d\u3068\u300c20\u6b73\u4ee5\u4e0a\u300d\u306e\u4e21\u65b9\uff08\u8907\u6570\uff09\u306e\u6761\u4ef6\u3092\u8a2d\u5b9a\u3057\u3001\u8ad6\u7406\u5024\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002\u4e0a\u8a18\u306f\u4e21\u65b9\u306e\u6761\u4ef6\u3092\u6e80\u305f\u3059\u305f\u3081\u3001\u300c\u9650\u5b9a\u5546\u54c1\u306e\u8cfc\u5165\u304c\u53ef\u80fd\u3067\u3059\uff01\u300d\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><br>\u5165\u308c\u5b50\u69cb\u9020\u306f\u3044\u304f\u3089\u3067\u3082\u4e2d\u306b\u8a18\u5165\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u3088\u308a\u53b3\u3057\u3044\u6761\u4ef6\u3092\u4f5c\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u304c\u3001\u3042\u307e\u308a\u5165\u308c\u5b50\u304c\u591a\u304f\u306a\u308b\uff08\u30cd\u30b9\u30c8\u304c\u6df1\u304f\u306a\u308b\uff09\u3068\u30b3\u30fc\u30c9\u304c\u8aad\u307f\u3065\u3089\u304f\u306a\u308b\u305f\u3081\u3001\u66f8\u304d\u65b9\u306b\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8907\u6570\u6761\u4ef6\uff08\u304b\u3064(&amp;&amp;)\u3001\u307e\u305f\u306f(||)\uff09<\/h2>\n\n\n\n<p>if\u6587\u306e\u5165\u308c\u5b50\u69cb\u9020\u3092\u7528\u3044\u3066\u8907\u6570\u6761\u4ef6\u306e\u8aac\u660e\u3092\u3057\u307e\u3057\u305f\u304c\u3001\u4ed6\u306e\u66f8\u304d\u65b9\u3092\u884c\u3046\u3053\u3068\u3067\u540c\u69d8\u306e\u8868\u73fe\u304c\u53ef\u80fd\u3067\u3059\u3002\u3053\u3053\u3067\u306f&amp;&amp;\u3068||\u306b\u3064\u3044\u3066\u3054\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8907\u6570\u6761\u4ef6\u306e\u8a2d\u5b9a\u65b9\u6cd5<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&amp;&amp;\uff1a\u304b\u3064(and\u6761\u4ef6)<\/li>\n\n\n\n<li>||\uff1a\u307e\u305f\u306f(or\u6761\u4ef6)<\/li>\n<\/ul>\n\n\n\n<p>&amp;&amp;\u306f\u3001\u300c\u25ef\u304b\u3064\u25b3\u300d\u306b\u8a72\u5f53\u3057\u307e\u3059\u3002\u53b3\u5bc6\u306b\u8a00\u3046\u3068\u300c&amp;&amp;\u306e\u5de6\u5074\u306e\u8ad6\u7406\u5024\u304c\u300ctrue\u300d\u3060\u3063\u305f\u6642\u306b\u3001\u53f3\u5074\u306e\u8ad6\u7406\u5024\u3092\u78ba\u8a8d\u3057\u3001\u53f3\u5074\u306e\u8ad6\u7406\u5024\u3092\u8fd4\u5374\u3059\u308b\u3002\u5de6\u5074\u304c\u300cfalse\u300d\u306e\u5834\u5408\u3001false\u3092\u8fd4\u5374\u3059\u308b\u3002\u300d\u3068\u306a\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u3001&amp;&amp;\u306e\u5de6\u5074\u306e\u8ad6\u7406\u5024\u304cfalse\u3060\u3063\u305f\u5834\u5408\u3001\u305d\u306e\u6642\u70b9\u3067false\u304c\u8fd4\u5374\u3055\u308c\u308b\u306e\u3067\u3001\u53f3\u5074\u306e\u8ad6\u7406\u5024\u306f\u78ba\u8a8d\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p><br>||\u306f\u3001\u300c\u25cb\u307e\u305f\u306f\u25b3\u300d\u306b\u8a72\u5f53\u3057\u307e\u3059\u3002\u3053\u3061\u3089\u3082\u53b3\u5bc6\u306b\u8a00\u3046\u3068\u300c||\u306e\u5de6\u5074\u306e\u8ad6\u7406\u5024\u304c\u300cfalse\u300d\u3060\u3063\u305f\u6642\u306b\u3001\u53f3\u5074\u306e\u8ad6\u7406\u5024\u3092\u78ba\u8a8d\u3057\u3001\u53f3\u5074\u306e\u8ad6\u7406\u5024\u3092\u8fd4\u5374\u3059\u308b\u3002\u5de6\u5074\u306e\u8ad6\u7406\u5024\u304c\u300ctrue\u300d\u306e\u5834\u5408\u3001true\u3092\u8fd4\u5374\u3059\u308b\u3002\u300d\u3068\u306a\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u3001||\u306e\u5de6\u5074\u304ctrue\u3060\u3063\u305f\u5834\u5408\u3001\u305d\u306e\u6642\u70b9\u3067true\u304c\u8fd4\u5374\u3055\u308c\u308b\u305f\u3081\u3001\u53f3\u5074\u306e\u8ad6\u7406\u5024\u306f\u78ba\u8a8d\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">&amp;&amp;\uff1a\u304b\u3064(and\u6761\u4ef6)<\/h4>\n\n\n\n<p>\u3067\u306f\u5b9f\u969b\u306b&amp;&amp;\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u5148\u7a0b\u306e<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php\n$member = array(\n  'name' =&gt; '\u592a\u90ce',\n  'gender' =&gt; '\u7537\u6027',\n  'age' =&gt; 20,\n  'address' =&gt; '\u6771\u4eac\u90fd',\n);\nif($member['address'] == '\u6771\u4eac\u90fd' &amp;&amp; $member['age'] &gt;= 20){\n  print('\u9650\u5b9a\u5546\u54c1\u306e\u8cfc\u5165\u304c\u53ef\u80fd\u3067\u3059\uff01');\n}\n?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$member<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #DCDCAA\">array<\/span><span style=\"color: #D4D4D4\">(<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #CE9178\">&#39;name&#39;<\/span><span style=\"color: #D4D4D4\"> =&gt; <\/span><span style=\"color: #CE9178\">&#39;\u592a\u90ce&#39;<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #CE9178\">&#39;gender&#39;<\/span><span style=\"color: #D4D4D4\"> =&gt; <\/span><span style=\"color: #CE9178\">&#39;\u7537\u6027&#39;<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #CE9178\">&#39;age&#39;<\/span><span style=\"color: #D4D4D4\"> =&gt; <\/span><span style=\"color: #B5CEA8\">20<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #CE9178\">&#39;address&#39;<\/span><span style=\"color: #D4D4D4\"> =&gt; <\/span><span style=\"color: #CE9178\">&#39;\u6771\u4eac\u90fd&#39;<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">$member<\/span><span style=\"color: #D4D4D4\">[<\/span><span style=\"color: #CE9178\">&#39;address&#39;<\/span><span style=\"color: #D4D4D4\">] == <\/span><span style=\"color: #CE9178\">&#39;\u6771\u4eac\u90fd&#39;<\/span><span style=\"color: #D4D4D4\"> &amp;&amp; <\/span><span style=\"color: #9CDCFE\">$member<\/span><span style=\"color: #D4D4D4\">[<\/span><span style=\"color: #CE9178\">&#39;age&#39;<\/span><span style=\"color: #D4D4D4\">] &gt;= <\/span><span style=\"color: #B5CEA8\">20<\/span><span style=\"color: #D4D4D4\">){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;\u9650\u5b9a\u5546\u54c1\u306e\u8cfc\u5165\u304c\u53ef\u80fd\u3067\u3059\uff01&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u3046\u66f8\u304f\u3068\u300c\u9650\u5b9a\u5546\u54c1\u306e\u8cfc\u5165\u304c\u53ef\u80fd\u3067\u3059\uff01\u300d\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u3053\u3067\u306f&amp;&amp;\u306e\u5de6\u5074\u306e$member[&#8216;address&#8217;] == &#8216;\u6771\u4eac\u90fd&#8217;\u306e\u8ad6\u7406\u5024\u3092\u5224\u65ad\u3057\u305f\u5f8c\u3001&amp;&amp;\u306e\u53f3\u5074\u306e$member[&#8216;age&#8217;] &gt;= 20\u306e\u8ad6\u7406\u5024\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u4e21\u65b9true\u306e\u305f\u3081\u3001($member[&#8216;address&#8217;] == &#8216;\u6771\u4eac\u90fd&#8217; <strong>&amp;&amp;<\/strong> $member[&#8216;age&#8217;] &gt;= 20)\u306ftrue\u304c\u8fd4\u5374\u3055\u308c\u308b\u305f\u3081\u3001print\u95a2\u6570\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">||\uff1a\u307e\u305f\u306f(or\u6761\u4ef6)<\/h4>\n\n\n\n<p>\u3067\u306f\u6b21\u306b\u300c65\u6b73\u4ee5\u4e0a\u3001\u307e\u305f\u306f6\u6b73\u4ee5\u4e0b\u306e\u65b9\u306f\u4e57\u8eca\u8cc3\u514d\u9664\u300d\u306e\u4e57\u308a\u7269\u304c\u3042\u3063\u305f\u3068\u3057\u307e\u3059\u3002\u3053\u306e\u6761\u4ef6\u3092PHP\u3067\u8a18\u8ff0\u3059\u308b\u3068\u3001\u4f8b\u3048\u3070\u6b21\u306e\u69d8\u306b\u8868\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php\n$member = array(\n  'name' =&gt; '\u5e7c\u7a1a\u5712\u5150',\n  'gender' =&gt; '\u5973\u6027',\n  'age' =&gt; 5,\n);\nif($member['age'] &gt;= 65 || $member['age'] &lt;= 6 ){\n  print('\u8a72\u5f53\u306e\u5e74\u9f62\u306e\u65b9\u306f\u3001\u4e57\u8eca\u8cc3\u304c\u7121\u6599\u3067\u3059\u3002');\n}\n?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$member<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #DCDCAA\">array<\/span><span style=\"color: #D4D4D4\">(<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #CE9178\">&#39;name&#39;<\/span><span style=\"color: #D4D4D4\"> =&gt; <\/span><span style=\"color: #CE9178\">&#39;\u5e7c\u7a1a\u5712\u5150&#39;<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #CE9178\">&#39;gender&#39;<\/span><span style=\"color: #D4D4D4\"> =&gt; <\/span><span style=\"color: #CE9178\">&#39;\u5973\u6027&#39;<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #CE9178\">&#39;age&#39;<\/span><span style=\"color: #D4D4D4\"> =&gt; <\/span><span style=\"color: #B5CEA8\">5<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">$member<\/span><span style=\"color: #D4D4D4\">[<\/span><span style=\"color: #CE9178\">&#39;age&#39;<\/span><span style=\"color: #D4D4D4\">] &gt;= <\/span><span style=\"color: #B5CEA8\">65<\/span><span style=\"color: #D4D4D4\"> || <\/span><span style=\"color: #9CDCFE\">$member<\/span><span style=\"color: #D4D4D4\">[<\/span><span style=\"color: #CE9178\">&#39;age&#39;<\/span><span style=\"color: #D4D4D4\">] &lt;= <\/span><span style=\"color: #B5CEA8\">6<\/span><span style=\"color: #D4D4D4\"> ){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;\u8a72\u5f53\u306e\u5e74\u9f62\u306e\u65b9\u306f\u3001\u4e57\u8eca\u8cc3\u304c\u7121\u6599\u3067\u3059\u3002&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u306e\u5834\u5408\u300c\u8a72\u5f53\u306e\u5e74\u9f62\u306e\u65b9\u306f\u3001\u4e57\u8eca\u8cc3\u304c\u7121\u6599\u3067\u3059\u3002\u300d\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u6700\u521d\u306b$member[&#8216;age&#8217;] &gt;= 65\u306e\u8ad6\u7406\u5024\u304c\u5224\u65ad\u3055\u308c\u307e\u3059\u3002||\u306e\u5de6\u5074\u304cfalse\u306e\u305f\u3081\u3001\u7d9a\u3044\u3066||\u306e\u53f3\u5074\u306e$member[&#8216;age&#8217;] &lt;= 6\u306e\u8ad6\u7406\u5024\u304c\u5224\u65ad\u3055\u308c\u307e\u3059\u3002||\u306e\u53f3\u5074\u304ctrue\u306e\u305f\u3081\u3001if\u6587\u306e\u4e2d\u306eprint\u95a2\u6570\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">if\u6587\u30921\u884c\u3067\u66f8\u304f\uff08\u4e09\u9805\u6f14\u7b97\u5b50 ?\u3068:\uff09<\/h2>\n\n\n\n<p>\u3053\u3053\u307e\u3067if\u6587\u306e\u3054\u7d39\u4ecb\u3092\u3044\u305f\u3057\u307e\u3057\u305f\u304c\u3001\u5b9f\u306f\u6761\u4ef6\u5206\u5c90\u51e6\u7406\u306fif\u6587\u4ee5\u5916\u306e\u8a18\u8f09\u65b9\u6cd5\u3082\u3042\u308a\u307e\u3059\u3002\u4e09\u9805\u6f14\u7b97\u5b50\u3068\u547c\u3070\u308c\u308b\u66f8\u304d\u65b9\u3092\u7528\u3044\u308b\u3068\u8868\u73fe\u304c\u53ef\u80fd\u3067\u3059\u3002\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php\n  \u6761\u4ef6 ? \u6761\u4ef6\u304ctrue\u306e\u6642\u306e\u51e6\u7406 : \u6761\u4ef6\u304cfalse\u306e\u6642\u306e\u51e6\u7406 ;\n?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  \u6761\u4ef6 ? \u6761\u4ef6\u304ctrue\u306e\u6642\u306e\u51e6\u7406 : \u6761\u4ef6\u304cfalse\u306e\u6642\u306e\u51e6\u7406 ;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u6761\u4ef6\u3092\u66f8\u304d\u7d42\u3048\u305f\u3089\u300c?\uff08\u534a\u89d2\u30af\u30a8\u30b9\u30c1\u30e7\u30f3\uff09\u300d\u3067\u533a\u5207\u308a\u3001?\u306e\u5f8c\u306b\u6761\u4ef6\u304ctrue\u306e\u51e6\u7406\u3092\u66f8\u304d\u307e\u3059\u3002\u305d\u306e\u6b21\u306b\u300c:\uff08\u534a\u89d2\u30b3\u30ed\u30f3\uff09\u300d\u3067\u533a\u5207\u308a\u3001:\u306e\u5f8c\u306b\u6761\u4ef6\u304cfalse\u306e\u6642\u306e\u51e6\u7406\u3092\u66f8\u304d\u307e\u3059\u3002\u5177\u4f53\u4f8b\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;?php\n$score = 62;\n$score &gt; 60 ? print('\u8a66\u9a13\u306b\u5408\u683c\u3057\u307e\u3057\u305f') : print('\u6b8b\u5ff5\u306a\u304c\u3089\u4e0d\u5408\u683c\u3067\u3059') ;\n?&gt;\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$score<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #B5CEA8\">62<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$score<\/span><span style=\"color: #D4D4D4\"> &gt; <\/span><span style=\"color: #B5CEA8\">60<\/span><span style=\"color: #D4D4D4\"> ? <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;\u8a66\u9a13\u306b\u5408\u683c\u3057\u307e\u3057\u305f&#39;<\/span><span style=\"color: #D4D4D4\">) : <\/span><span style=\"color: #DCDCAA\">print<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;\u6b8b\u5ff5\u306a\u304c\u3089\u4e0d\u5408\u683c\u3067\u3059&#39;<\/span><span style=\"color: #D4D4D4\">) ;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u306e\u5834\u5408\u3001\u300c\u8a66\u9a13\u306b\u5408\u683c\u3057\u307e\u3057\u305f\u300d\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u6761\u4ef6\u304ctrue\u306a\u306e\u3067\u3001? \u304b\u3089 : \u307e\u3067\u306e\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><br>\u3053\u306e\u4e09\u9805\u6f14\u7b97\u5b50\u3001\u30b3\u30fc\u30c9\u91cf\u304c\u5c11\u306a\u304f\u306a\u308b\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u66f8\u304d\u65b9\u306b\u3088\u3063\u3066\u306f\u30b3\u30fc\u30c9\u304c\u7406\u89e3\u3057\u3065\u3089\u304f\u306a\u308b\u30c7\u30e1\u30ea\u30c3\u30c8\u3082\u3042\u308a\u307e\u3059\u3002\u3042\u3068\u304b\u3089\u81ea\u5206\u304c\u898b\u76f4\u3057\u305f\u6642\u3084\u3001\u4ed6\u306e\u4eba\u304c\u898b\u3066\u3082\u308f\u304b\u308a\u3084\u3059\u3044\u30b3\u30fc\u30c9\u3092\u5fc3\u304c\u3051\u3066\u3001\u9069\u5207\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u3044\u304b\u304c\u3067\u3057\u305f\u3067\u3057\u3087\u3046\u304b\u3002\u4eca\u56de\u306fPHP\u306e\u6761\u4ef6\u5206\u5c90\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3057\u305f\u3002\u5177\u4f53\u7684\u306b\u306f\u4ee5\u4e0b\u306e9\u3064\u3092\u3054\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6761\u4ef6\u5206\u5c90<\/li>\n\n\n\n<li>\u6761\u4ef6\u5206\u5c90\u306e\u4f5c\u6210\u65b9\u6cd5<\/li>\n\n\n\n<li>if\u6587\u306e\u6761\u4ef6\u306b\u95a2\u3057\u3066\uff08true\/false\uff09<\/li>\n\n\n\n<li>\u6761\u4ef6\u5f0f\u304cfalse\u3067\u306e\u51e6\u7406\uff08! \u30d3\u30c3\u30af\u30ea\u30de\u30fc\u30af\u30fb\u30a8\u30af\u30b9\u30af\u30e9\u30e1\u30fc\u30b7\u30e7\u30f3\u30de\u30fc\u30af\uff09<\/li>\n\n\n\n<li>\u6761\u4ef6\u304ctrue\/false\u3067\u306e\u51e6\u7406\uff08else\uff09<\/li>\n\n\n\n<li>3\u3064\u4ee5\u4e0a\u306e\u6761\u4ef6\u5206\u5c90\uff08else if(){}else{}\uff09<\/li>\n\n\n\n<li>\u8907\u6570\u6761\u4ef6\uff08if\u6587\u306e\u5165\u308c\u5b50\u30fb\u30cd\u30b9\u30c8\uff09<\/li>\n\n\n\n<li>\u8907\u6570\u6761\u4ef6\uff08\u304b\u3064(&amp;&amp;)\u3001\u307e\u305f\u306f(||)\uff09<\/li>\n\n\n\n<li>if\u6587\u30921\u884c\u3067\u66f8\u304f\uff08\u4e09\u9805\u6f14\u7b97\u5b50 ?\u3068:\uff09<\/li>\n<\/ol>\n\n\n\n<p>\u4eca\u56de\u3082\u304b\u306a\u308a\u76db\u308a\u3060\u304f\u3055\u3093\u3067\u3057\u305f\u306d\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306f1\u56de\u3067\u899a\u3048\u3088\u3046\u3068\u305b\u305a\u3001\u7e70\u308a\u8fd4\u3057\u4f7f\u7528\u3057\u306a\u304c\u3089\u99b4\u67d3\u307e\u305b\u3066\u3044\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u6761\u4ef6\u5206\u5c90\u3082\u3042\u3089\u3086\u308b\u3068\u3053\u308d\u3067\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u4f8b\u3048\u3070\u300c\u4f1a\u54e1\u5236\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8d77\u52d5\u3057\u305f\u6642\u306b\u3001\u4f1a\u54e1\u767b\u9332\u304c\u7d42\u308f\u3063\u3066\u3044\u306a\u3044\u65b9\u306f\u767b\u9332\u30da\u30fc\u30b8\u306b\u98db\u3070\u3059\u300d\u3068\u8a00\u3063\u305f\u3088\u3046\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u3082\u3001\u4eca\u56de\u306e\u6761\u4ef6\u5206\u5c90\u304c\u6271\u308f\u308c\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/tetraup.com\/news_topics\/column\/php-part9\/\" title=\"\">\u6b21\u56de<\/a>\u306f\u7e70\u308a\u8fd4\u3057\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u3053\u3061\u3089\u3082\u4eca\u56de\u306e\u6761\u4ef6\u5206\u5c90\u3068\u540c\u3058\u304f\u3001\u958b\u767a\u306b\u5fc5\u9808\u3067\u975e\u5e38\u306b\u91cd\u8981\u306a\u56de\u3068\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6700\u5f8c\u306b<\/h2>\n\n\n\n<p>\u5f53\u6559\u5ba4<a href=\"https:\/\/tetraup.com\/\" title=\"\">TETRA UP<\/a>\u3067\u306f\u3001\u4e3b\u306b\u4f01\u696d\u7814\u4fee\u3084\u30a4\u30d9\u30f3\u30c8\u3067\u53d6\u308a\u6271\u3046\u4eca\u56de\u306ePHP\u306b\u9650\u3089\u305a\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u57fa\u790e\u3092\u5b66\u3079\u308b<a href=\"https:\/\/tetraup.com\/education\/course\/scratch\">Scratch\u30b3\u30fc\u30b9<\/a>\u3001\u3082\u306e\u3065\u304f\u308a\u3068\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b9f\u969b\u89e6\u3063\u3066\u5b66\u3079\u308b<a href=\"https:\/\/tetraup.com\/education\/course\/robot\">\u30ed\u30dc\u30c3\u30c8\u30b3\u30fc\u30b9<\/a>\u3001\u305d\u3057\u3066\u672c\u683c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u7fd2\u5f97\u3067\u304d\u308b<a href=\"https:\/\/tetraup.com\/education\/course\/unity\">unity\u30b3\u30fc\u30b9<\/a>\u3001\u305d\u3057\u3066\u7dcf\u30e6\u30fc\u30b6\u30fc\u6570\u7d044\u5104\u4eba\u306e<a href=\"https:\/\/tetraup.com\/education\/course\/roblox\" title=\"\">Roblox\u30b3\u30fc\u30b9<\/a>\u3082\u5c55\u958b\u3057\u3066\u304a\u308a\u307e\u3059\u3002\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u3082\u53d7\u3051\u4ed8\u3051\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u3001\u3053\u306e\u6a5f\u4f1a\u306b\u30b3\u30c1\u30e9\u3088\u308a\u4f53\u9a13\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<br><div class=\"wp-block-button\"><a class=\"wp-block-button__link has-very-dark-gray-color has-light-green-cyan-background-color has-text-color has-background wp-element-button\" href=\"https:\/\/tetraup.com\/education\/trial-form\" style=\"border-radius:3px\" target=\"_blank\" rel=\"noreferrer noopener\">\u7121\u6599\u4f53\u9a13\u6388\u696d\u306e\u304a\u7533\u8fbc\u307f\u306f\u30b3\u30c1\u30e9<\/a><\/div><br>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u306fPHP\u306e\u914d\u5217\u306b\u3064\u3044\u3066\u8aac\u660e\u3044\u305f\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306fPHP\u306e\u6761\u4ef6\u5206\u5c90\uff08if\u6587\uff09\u306b\u3064\u3044\u3066\u8aac\u660e\u3044\u305f\u3057\u307e\u3059\u3002 \u7121\u6599\u4f53\u9a13\u6388\u696d\u306e\u304a\u7533\u8fbc\u307f\u306f\u30b3\u30c1\u30e9 \u6761\u4ef6\u5206\u5c90\u3068\u306f \u6761\u4ef6\u5206\u5c90\u3068\u306f\u300c\u3042\u308b\u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u308b\uff08\u8ad6\u7406\u5024\u3067true\u3060\u3063\u305f\uff09\u304b\u3069\u3046\u304b\u306b\u3088 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":9030,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[37],"tags":[82,60],"class_list":["post-6140","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-column","tag-php","tag-web-site"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/posts\/6140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/comments?post=6140"}],"version-history":[{"count":9,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/posts\/6140\/revisions"}],"predecessor-version":[{"id":10487,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/posts\/6140\/revisions\/10487"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/media\/9030"}],"wp:attachment":[{"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/media?parent=6140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/categories?post=6140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/tags?post=6140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}