
{"id":7417,"date":"2023-09-14T04:00:39","date_gmt":"2023-09-13T19:00:39","guid":{"rendered":"https:\/\/tetraup.com\/news_topics\/archives\/7417"},"modified":"2024-09-01T17:17:51","modified_gmt":"2024-09-01T08:17:51","slug":"php-part5","status":"publish","type":"post","link":"https:\/\/tetraup.com\/news_topics\/column\/php-part5\/","title":{"rendered":"\u975e\u30a8\u30f3\u30b8\u30cb\u30a2\u3067\u3082\u77e5\u3089\u306a\u3044\u3068\u30e4\u30d0\u30a4PHP\u3000Part5\u301c\u30d6\u30ed\u30c3\u30af\u30fb\u5909\u6570\u30fb\u5b9a\u6570\u30fb\u4ee3\u5165\u6f14\u7b97\u5b50\u3092\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_Part5.jpg\" alt=\"\" class=\"wp-image-9039\"\/><\/figure>\n\n\n\n<p><a href=\"https:\/\/tetraup.com\/news_topics\/column\/php-part4\/\" title=\"\">\u524d\u56de<\/a>\u306f\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3068\u958b\u767a\u74b0\u5883\u3092\u7528\u610f\u3057\u3066\u3001\u81ea\u5206\u304c\u66f8\u3044\u305f\u30b3\u30fc\u30c9\u3092\u30d6\u30e9\u30a6\u30b6\u306b\u8868\u793a\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u5b9f\u65bd\u3057\u307e\u3057\u305f\u3002<br>\u4eca\u56de\u306fPHP\u306b\u304a\u3051\u308bPHP\u30d6\u30ed\u30c3\u30af\u30fb\u5909\u6570\u30fb\u5b9a\u6570\u30fb\u4ee3\u5165\u6f14\u7b97\u5b50\u3092\u3054\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br>PHP\u3092\u7528\u3044\u305f\u30d6\u30e9\u30a6\u30b6\u3067\u306e\u8868\u793a\u65b9\u6cd5\u304c\u307e\u3060\u308f\u304b\u3089\u306a\u3044\u65b9\u306f\u3001<br><a href=\"https:\/\/tetraup.com\/news_topics\/column\/php-part4\/\" title=\"\u975e\u30a8\u30f3\u30b8\u30cb\u30a2\u3067\u3082\u77e5\u3089\u306a\u3044\u3068\u30e4\u30d0\u30a4PHP\u3000Part4\u301c\u30d6\u30e9\u30a6\u30b6\u306b\u8868\u793a\u3057\u3066\u307f\u3088\u3046\u301c\">\u975e\u30a8\u30f3\u30b8\u30cb\u30a2\u3067\u3082\u77e5\u3089\u306a\u3044\u3068\u30e4\u30d0\u30a4PHP\u3000Part4\u301c\u30d6\u30e9\u30a6\u30b6\u306b\u8868\u793a\u3057\u3066\u307f\u3088\u3046\u301c<\/a><br>\u3082\u5408\u308f\u305b\u3066\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PHP\u30d6\u30ed\u30c3\u30af\u3068\u306f<\/h2>\n\n\n\n<p>PHP\u30d6\u30ed\u30c3\u30af\u306f\u300c<span style=\"color:blue\"><strong>\u3053\u3053\u304b\u3089\u3053\u3053\u307e\u3067\u306fPHP\u3068\u3057\u3066\u6271\u3044\u307e\u3059\u3088<\/strong><\/span>\u300d\u3068\u7bc4\u56f2\u3092\u6307\u5b9a\u3057\u305f\u90e8\u5206\u3092\u3055\u3057\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f<br>\u300e<code>&lt;?php<\/code>\u300f\u304c\u958b\u59cb\u30bf\u30b0<br>\u300e<code>?&gt;<\/code>\u300f\u304c\u7d42\u4e86\u30bf\u30b0<br>\u3068\u306a\u308a\u307e\u3059\u3002<strong>PHP\u306fHTML\u306b\u7d44\u307f\u8fbc\u307e\u308c\u308b\u3053\u3068\u3092\u524d\u63d0\u3068\u3057\u305f\u8a00\u8a9e<\/strong>\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u300c\u3053\u3053\u304cPHP\u3060\u3088\uff01\u300d\u3068\u3044\u3046\u3053\u3068\u3092\u660e\u793a\u3057\u3066\u3042\u3052\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u958b\u59cb\u30bf\u30b0\u301c\u7d42\u4e86\u30bf\u30b0\u306e\u5185\u90e8\u306fPHP\u3068\u3057\u3066\u51e6\u7406\u3055\u308c\u3001\u30bf\u30b0\u306e\u5916\u90e8\u306fPHP\u3068\u3057\u3066\u306f\u51e6\u7406\u3055\u308c\u305a\u306b\u901a\u5e38\u306e\u6587\u5b57\u5217\u3068\u3057\u3066\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<br><a href=\"https:\/\/tetraup.com\/news_topics\/column\/php-part4\/\" title=\"\">Part4<\/a>\u3067\u3054\u7d39\u4ecb\u3057\u305f\u5185\u5bb9\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30e1\u30f3\u30c8\u90e8\u5206\u304cPHP\u30d6\u30ed\u30c3\u30af\u306b\u8a72\u5f53\u3057\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\/\/\u3053\u3053\u304b\u3089PHP\u30d6\u30ed\u30c3\u30af\u304c\u958b\u59cb\u3002\n$name1 = &quot;\u5c71\u7530\u592a\u90ce&quot;;\n$name2 = &quot;\u5c71\u7530\u82b1\u5b50&quot;;\n?&gt; \/\/\u3053\u3053\u307e\u3067\u304cPHP\u30d6\u30ed\u30c3\u30af\u3067\u3059\u3002\n\n&lt;p&gt;\n&lt;?php \/\/\u3053\u3053\u304b\u3089PHP\u30d6\u30ed\u30c3\u30af\u304c\u958b\u59cb\u3057\u307e\u3059\necho &quot;p\u30bf\u30b0\u5185\u306b\u3001php\u306eecho\u3092\u4f7f\u3063\u3066\u6587\u5b57\u3092\u8ffd\u52a0\u3059\u308b&quot;;\n?&gt; \/\/\u3053\u3053\u307e\u3067\u304cPHP\u30d6\u30ed\u30c3\u30af\u3067\u3059\n&lt;\/p&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 style=\"color: #6A9955\">\/\/\u3053\u3053\u304b\u3089PHP\u30d6\u30ed\u30c3\u30af\u304c\u958b\u59cb\u3002<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$name1<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #CE9178\">&quot;\u5c71\u7530\u592a\u90ce&quot;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$name2<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #CE9178\">&quot;\u5c71\u7530\u82b1\u5b50&quot;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt; <\/span><span style=\"color: #6A9955\">\/\/\u3053\u3053\u307e\u3067\u304cPHP\u30d6\u30ed\u30c3\u30af\u3067\u3059\u3002<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">&lt;p&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">&lt;?php <\/span><span style=\"color: #6A9955\">\/\/\u3053\u3053\u304b\u3089PHP\u30d6\u30ed\u30c3\u30af\u304c\u958b\u59cb\u3057\u307e\u3059<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">echo<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&quot;p\u30bf\u30b0\u5185\u306b\u3001php\u306eecho\u3092\u4f7f\u3063\u3066\u6587\u5b57\u3092\u8ffd\u52a0\u3059\u308b&quot;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt; <\/span><span style=\"color: #6A9955\">\/\/\u3053\u3053\u307e\u3067\u304cPHP\u30d6\u30ed\u30c3\u30af\u3067\u3059<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">&lt;\/p&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u306e\u69d8\u306b\u3001\u300e<code>&lt;?php<\/code>\u300f\u306e\u958b\u59cb\u30bf\u30b0\u3068\u300e<code>?&gt;<\/code>\u300f\u306e\u7d42\u4e86\u30bf\u30b0\u3067\u56f2\u3046\u3053\u3068\u3067PHP\u3068\u3057\u3066\u51e6\u7406\u3055\u308c\u307e\u3059\u3002PHP\u3092\u6271\u3046\u6642\u306f\u3001\u4e0a\u8a18\u306e\u69d8\u306b\u958b\u59cb\u30bf\u30b0\u3068\u7d42\u4e86\u30bf\u30b0\u3092\u7528\u3044\u3066\u300c\u3053\u3053\u304cPHP\u3060\u3088\uff01\u300d\u3068\u660e\u793a\u3057\u3066\u3042\u3052\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u3092\u3054\u7406\u89e3\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5909\u6570\u30fb\u5b9a\u6570\u3068\u306f<\/h2>\n\n\n\n<p>\u5909\u6570\u30fb\u5b9a\u6570\u3068\u805e\u3044\u3066\u3001\u6700\u521d\u306b\u601d\u3044\u6d6e\u304b\u3076\u306e\u306f\u306a\u3093\u3067\u3057\u3087\u3046\u304b\u2026\u7b46\u8005\u306f\u4e2d\u5b66\u304b\u3089\u59cb\u307e\u3063\u305f\u6570\u5b66\uff08\u82e6\u624b\u306a\u65b9\u3082\u591a\u304b\u3063\u305f\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff09\u3092\u601d\u3044\u51fa\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>y = x + 1<\/p>\n\n\n\n<p>\u3068\u3044\u3063\u305f\u6570\u5f0f\u3092\u901a\u3057\u3066\u3001\u5909\u6570\u30fb\u5b9a\u6570\u3068\u3044\u3046\u6982\u5ff5\u306b\u89e6\u308c\u305f\u65b9\u306f\u591a\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u57fa\u672c\u7684\u306b\u306f\u3001\u3053\u306e\u6570\u5b66\u3067\u4f7f\u308f\u308c\u3066\u3044\u305f\u6982\u5ff5\u306b\u8fd1\u3044\u3082\u306e\u3068\u306a\u308a\u307e\u3059\u3002<br>PHP\u3067\u6271\u3046\u5909\u6570\u3082\u5b9a\u6570\u3082\u3001\u300c<span style=\"color:blue\">\u3042\u308b\u5024\u3092\u4e00\u5b9a\u671f\u9593\u4fdd\u7ba1\u3059\u308b\u3001\u540d\u524d\u304c\u3064\u3044\u305f\u9818\u57df\u30fb\u4fdd\u7ba1\u5834\u6240<\/span>\u300d\u3068\u3044\u3046\u8a8d\u8b58\u3067\u3054\u7406\u89e3\u304f\u3060\u3055\u3044\u3002\u3088\u304f\u53c2\u8003\u66f8\u306a\u3069\u3067\u306f\u300c\u7bb1\u300d\u3068\u3044\u3063\u305f\u6982\u5ff5\u3092\u7528\u3044\u3089\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u5024\u3092\u683c\u7d0d\u3057\u305f\u308a\uff08PHP\u3067\u306f\u300e\u4ee3\u5165\u300f\u3068\u8868\u73fe\u3057\u307e\u3059\uff09\u3001\u53d6\u308a\u51fa\u3057\u305f\u308a\u3001\u683c\u7d0d\u3059\u308b\u5024\u3092\u5909\u66f4\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4ee3\u5165\u6f14\u7b97\u5b50\u3068\u306f<\/h2>\n\n\n\n<p>\u5909\u6570\u30fb\u5b9a\u6570\u306e\u3054\u7d39\u4ecb\u306b\u5165\u308b\u524d\u306b\u3001\u4ee3\u5165\u6f14\u7b97\u5b50\u3092\u3054\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3059\u3002\u300e<code>=<\/code>\u300f\u3053\u306e\u8a18\u53f7\u304c\u4ee3\u5165\u6f14\u7b97\u5b50\u306e\u57fa\u672c\u3068\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u8a18\u53f7\u3092\u898b\u308b\u3068\u300c\u5de6\u8fba\u3068\u53f3\u8fba\u304c\u7b49\u3057\u3044\uff08\u30a4\u30b3\u30fc\u30eb\uff09\u300d\u3068\u3044\u3063\u305f\u610f\u5473\u304c\u6700\u521d\u306b\u6d6e\u304b\u3093\u3067\u304f\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u6570\u5b66\u306e\u5834\u5408\u306f\u305d\u308c\u3067\u6b63\u3057\u3044\u306e\u3067\u3059\u304c\u3001PHP\u306e\u5834\u5408\u3067\u306f\u5c11\u3057\u610f\u5473\u5408\u3044\u304c\u7570\u306a\u308a\u307e\u3059\u3002<br>PHP\u3067\u306e\u300e<code>=<\/code>\uff08\u4ee3\u5165\u6f14\u7b97\u5b50\uff09\u300f\u306f\u300c\u300e<code>=<\/code>\u300f\u306e\u5de6\u30aa\u30da\u30e9\u30f3\u30c9\u306b\u300e<code>=<\/code>\u300f\u306e\u53f3\u30aa\u30da\u30e9\u30f3\u30c9\u3092<strong>\u683c\u7d0d\uff08\u4ee3\u5165\uff09\u3059\u308b<\/strong>\u300d\u3068\u3044\u3046\u610f\u5473\u5408\u3044\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u6025\u306b\u300c\u30aa\u30da\u30e9\u30f3\u30c9\u300d\u3068\u3044\u3046\u805e\u304d\u6163\u308c\u306a\u3044\u5358\u8a9e\u304c\u51fa\u3066\u304d\u305f\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u30aa\u30da\u30e9\u30f3\u30c9\u3068\u306f\u300c\u6f14\u7b97\u306e\u5bfe\u8c61\u3068\u306a\u308b<strong>\u5024\u3084\u5909\u6570<\/strong>\u300d\u3092\u6307\u3057\u307e\u3059\u3002<br>\u3057\u305f\u304c\u3063\u3066\u3001\u4ee3\u5165\u6f14\u7b97\u5b50\u306f\u300c<span style=\"color:blue\">=\u306e\u5de6\u5074\u306e\u5024\u306b=\u306e\u53f3\u5074\u306e\u5024\u3092<strong>\u683c\u7d0d\uff08\u4ee3\u5165\uff09\u3059\u308b<\/strong><\/span>\u300d\u6f14\u7b97\u5b50\u306b\u306a\u308a\u307e\u3059\u3002\u4ee3\u5165\u3059\u308b\u5024\u306f\u53f3\u5074\u3067\u3042\u308b\u3053\u3068\u3092\u899a\u3048\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5909\u6570\u3068\u306f<\/h2>\n\n\n\n<p>\u3082\u306e\u306f\u8a66\u3057\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3055\u3063\u305d\u304f\u5909\u6570\u306e\u5177\u4f53\u4f8b\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u4e0a\u306e\uff12\u884c\u306b\u66f8\u304b\u308c\u305f\u90e8\u5206\u304c\u5909\u6570\u306b\u8a72\u5f53\u3057\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\n$name1 = &quot;\u5c71\u7530\u592a\u90ce&quot;;\n$name2 = &quot;\u5c71\u7530\u82b1\u5b50&quot;;\necho $name1; \/\/ \u300c\u5c71\u7530\u592a\u90ce\u300d\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\necho $name2; \/\/ \u300c\u5c71\u7530\u82b1\u5b50\u300d\u304c\u51fa\u529b\u3055\u308c\u307e\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\">$name1<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #CE9178\">&quot;\u5c71\u7530\u592a\u90ce&quot;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$name2<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #CE9178\">&quot;\u5c71\u7530\u82b1\u5b50&quot;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">echo<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">$name1<\/span><span style=\"color: #D4D4D4\">; <\/span><span style=\"color: #6A9955\">\/\/ \u300c\u5c71\u7530\u592a\u90ce\u300d\u304c\u51fa\u529b\u3055\u308c\u307e\u3059<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">echo<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">$name2<\/span><span style=\"color: #D4D4D4\">; <\/span><span style=\"color: #6A9955\">\/\/ \u300c\u5c71\u7530\u82b1\u5b50\u300d\u304c\u51fa\u529b\u3055\u308c\u307e\u3059<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><span style=\"color:blue;\">PHP\u306e\u5909\u6570\u306f\u300e<code>$<\/code>\u300f\u306e\u30c9\u30eb\u8a18\u53f7\u304b\u3089\u66f8\u304d\u59cb\u3081\u307e\u3059\u3002<\/span>\u3064\u307e\u308a\u300e<code>$name1<\/code>\u300f\u306f\u300cname1\u3068\u3044\u3046\u540d\u524d\u306e\u5909\u6570\u3092\u7528\u610f\u3059\u308b\u300d\u3053\u3068\u3092\u610f\u5473\u3057\u3066\u3044\u307e\u3059\u3002\u300e<code>=<\/code>\u300f\u306f\u4ee3\u5165\u6f14\u7b97\u5b50\u3067\u3057\u305f\u306d\u3002\u5de6\u306e\u5024\u306b\u53f3\u306e\u5024\u3092\u683c\u7d0d\u3057\u307e\u3059\u3002\u6b21\u306b\u300e&#8221;\u5c71\u7530\u592a\u90ce&#8221;\u300f\u306f\u5909\u6570\u306b\u683c\u7d0d\u3059\u308b\u5024\u306e\u6587\u5b57\u5217\u3068\u306a\u308a\u307e\u3059\u3002\u6700\u5f8c\u306e\u300e;\uff08\u30bb\u30df\u30b3\u30ed\u30f3\uff09\u300f\u306f\u533a\u5207\u308a\u6587\u3068\u306a\u308a\u307e\u3059\u3002\u6587\u306e\u7d42\u308f\u308a\u306b\u306f\u5fc5\u305a\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u3057\u305f\u304c\u3063\u3066\u3001\u300e<code>$name1 = \"\u5c71\u7530\u592a\u90ce\";<\/code>\u300f\u306f\u300c\u5909\u6570name1\u306b\u5c71\u7530\u592a\u90ce\u3068\u3044\u3046\u6587\u5b57\u5217\u3092\u4ee3\u5165\u3059\u308b\uff08\u533a\u5207\u308a\u6587\uff09\u300d\u3068\u3044\u3046\u610f\u5473\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>PHP\u306e\u5909\u6570\u306b\u306f\u3044\u304f\u3064\u304b\u30eb\u30fc\u30eb\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30fb\u6700\u521d\u306b\u300e$\u300f\u3092\u3064\u3051\u308b<\/li>\n\n\n\n<li>\u30fb\u5909\u6570\u306e\u540d\u524d\u306b\u4f7f\u7528\u3067\u304d\u308b\u306e\u306f\u3001\u534a\u89d2\u82f1\u6570\u5b57\u3068_\uff08\u30a2\u30f3\u30c0\u30fc\u30b9\u30b3\u30a2\uff09<\/li>\n\n\n\n<li>\u30fb\u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u306f\u533a\u5225\u3055\u308c\u308b<\/li>\n\n\n\n<li>\uff08\u4f8b\uff1a$Name\u3001$name\u306f\u5225\u306e\u5909\u6570\u3068\u3057\u3066\u6271\u308f\u308c\u308b\uff09<\/li>\n\n\n\n<li>\u30fb\u300e$\u300f\u306e\u76f4\u5f8c\u306b\u6570\u5b57\u306f\u4f7f\u3048\u306a\u3044<\/li>\n\n\n\n<li>\uff08\u4f8b\uff1a\u25ef$name2\u3001$_name3\u3001\u00d7$3name\uff09<\/li>\n\n\n\n<li>\u30fbthis\u3092\u5909\u6570\u540d\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u63a8\u5968\u3057\u3066\u3044\u306a\u3044<\/li>\n\n\n\n<li>\uff08$this\u306f\u64ec\u4f3c\u5909\u6570\u3068\u3044\u3063\u3066\u3001PHP\u3067\u306f\u5225\u306e\u5909\u6570\u306b\u65e2\u306b\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\uff09<\/li>\n\n\n\n<li>\u30fb\u518d\u4ee3\u5165\u304c\u53ef\u80fd<\/li>\n<\/ul>\n\n\n\n<p>\u518d\u4ee3\u5165\u306b\u95a2\u3057\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u3054\u89a7\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$number = 1;\n$number = $number + 4;\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\">$number<\/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: #9CDCFE\">$number<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #9CDCFE\">$number<\/span><span style=\"color: #D4D4D4\"> + <\/span><span style=\"color: #B5CEA8\">4<\/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\u3061\u3089\u3092\u898b\u3066\u9055\u548c\u611f\u3092\u611f\u3058\u305f\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u7b46\u8005\u3082\u6700\u521d\u306f\u9055\u548c\u611f\u3092\u611f\u3058\u307e\u3057\u305f\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=\"$number = $number + 4 ;\" 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: #9CDCFE\">$number<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #9CDCFE\">$number<\/span><span style=\"color: #D4D4D4\"> + <\/span><span style=\"color: #B5CEA8\">4<\/span><span style=\"color: #D4D4D4\"> ;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3063\u3066\u300c\u5de6\u8fba\u3068\u53f3\u8fba\u30a4\u30b3\u30fc\u30eb\u3058\u3083\u306a\u3044\u3058\u3083\u3093\uff01\u300d\u3068\u3002\u3053\u3053\u3067\u5148\u307b\u3069\u8aac\u660e\u3057\u305f\u300c\u4ee3\u5165\u6f14\u7b97\u5b50\u300d\u300c=\u300d\u306b\u3064\u3044\u3066\u3082\u3046\u4e00\u5ea6\u601d\u3044\u51fa\u3057\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002\u4ee3\u5165\u6f14\u7b97\u5b50\u306f\u300c<span style=\"color:blue\">=\u306e\u5de6\u5074\u306e\u5024\u306b=\u306e\u53f3\u5074\u306e\u5024\u3092<strong>\u683c\u7d0d\uff08\u4ee3\u5165\uff09\u3059\u308b<\/strong><\/span>\u300d\u3067\u3057\u305f\u306d\u3002\u5148\u307b\u3069\u306e\u30b3\u30fc\u30c9\u306b\u8aac\u660e\u3092\u52a0\u3048\u308b\u3068\u4ee5\u4e0b\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 \/\/php\u306e\u958b\u59cb\u30bf\u30b0\n$number = 1; \/\/$number \u306b 1 \u3092\u4ee3\u5165\u3059\u308b\u3002\n$number = $number + 4 ;\n\/\/\u65b0\u305f\u306a\u5909\u6570$number\u306b\u3001\u6700\u521d\u306b\u5b9a\u7fa9\u3057\u305f\u5909\u6570$number\uff081\u304c\u4ee3\u5165\u6e08\uff09\u30684\u3092\u8db3\u3057\u305f\u3082\u306e\u3092\u518d\u5b9a\u7fa9\u3059\u308b\n\/\/$number\u306b\u4ee3\u5165\u3055\u308c\u3066\u3044\u308b\u6570\u5b57\u306f(1+4)\u30675\u3068\u306a\u308b\u3002\n?&gt; \/\/php\u306e\u7d42\u4e86\u30bf\u30b0\" 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 style=\"color: #6A9955\">\/\/php\u306e\u958b\u59cb\u30bf\u30b0<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$number<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #B5CEA8\">1<\/span><span style=\"color: #D4D4D4\">; <\/span><span style=\"color: #6A9955\">\/\/$number \u306b 1 \u3092\u4ee3\u5165\u3059\u308b\u3002<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$number<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #9CDCFE\">$number<\/span><span style=\"color: #D4D4D4\"> + <\/span><span style=\"color: #B5CEA8\">4<\/span><span style=\"color: #D4D4D4\"> ;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #6A9955\">\/\/\u65b0\u305f\u306a\u5909\u6570$number\u306b\u3001\u6700\u521d\u306b\u5b9a\u7fa9\u3057\u305f\u5909\u6570$number\uff081\u304c\u4ee3\u5165\u6e08\uff09\u30684\u3092\u8db3\u3057\u305f\u3082\u306e\u3092\u518d\u5b9a\u7fa9\u3059\u308b<\/span><\/span>\n<span class=\"line\"><span style=\"color: #6A9955\">\/\/$number\u306b\u4ee3\u5165\u3055\u308c\u3066\u3044\u308b\u6570\u5b57\u306f(1+4)\u30675\u3068\u306a\u308b\u3002<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt; <\/span><span style=\"color: #6A9955\">\/\/php\u306e\u7d42\u4e86\u30bf\u30b0<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u4e0a\u8a18\u306e\u69d8\u306b\u306a\u308a\u307e\u3059\u3002\u3064\u307e\u308a<\/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=\"$number = $number + 4;\" 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: #9CDCFE\">$number<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #9CDCFE\">$number<\/span><span style=\"color: #D4D4D4\"> + <\/span><span style=\"color: #B5CEA8\">4<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\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=\"$number = 1 + 4;\/\/\u5b9a\u7fa9\u6e08\u307f\u306e$number = 1;\" 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: #9CDCFE\">$number<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #B5CEA8\">1<\/span><span style=\"color: #D4D4D4\"> + <\/span><span style=\"color: #B5CEA8\">4<\/span><span style=\"color: #D4D4D4\">;<\/span><span style=\"color: #6A9955\">\/\/\u5b9a\u7fa9\u6e08\u307f\u306e$number = 1;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3068\u306a\u308a\u3001<code>$number = 5;<\/code>\u3068\u306a\u308a\u307e\u3059\u3002\u518d\u5ea6$number\u306b5\u304c\u4ee3\u5165\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u300c\u518d\u4ee3\u5165\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9a\u6570\u3068\u306f<\/h2>\n\n\n\n<p>\u5148\u307b\u3069\u6570\u5b66\u306e\u5f0f\u3092\u7d39\u4ecb\u3057\u305f\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>y = x + 1<\/p>\n\n\n\n<p>\u5b9a\u6570\u306f\u4e0a\u8a18\u5f0f\u3067\u8a00\u3046\u3068\u3053\u308d\u306e\u300c1\u300d\u306b\u8a72\u5f53\u3057\u307e\u3059\u3002\u5909\u5316\u3057\u306a\u3044\u6570\u3067\u3059\u306d\u3002PHP\u306b\u304a\u3051\u308b\u5b9a\u6570\u3082\u3001\u5b9a\u7fa9\u3057\u305f\u3042\u3068\u306f\u57fa\u672c\u7684\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u306a\u3044\u5024\u3092\u5b9a\u6570\u306b\u683c\u7d0d\u3057\u3066\u3044\u304d\u307e\u3059\u3002PHP\u306e\u5b9a\u6570\u306b\u95a2\u3057\u3066\u3082\u3044\u304f\u3064\u304b\u30eb\u30fc\u30eb\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30fb\u6700\u521d\u306bdefine()\u3068\u5ba3\u8a00\u3059\u308b\u3002<\/li>\n\n\n\n<li>\u30fbdefine()\u306e\u4e2d\u306b\u3001\u300c\u5b9a\u7fa9\u3057\u305f\u3044\u5b9a\u6570\u306e\u540d\u524d\u300d\u3068\u300c\u683c\u7d0d\u3057\u305f\u3044\u5024\u300d\u3092\u8a18\u8f09\u3059\u308b<\/li>\n\n\n\n<li>\uff08\u4f8b\uff1adefine(NAME , &#8220;\u5c71\u7530 \u592a\u90ce&#8221;);\uff09<\/li>\n\n\n\n<li>\u30fb\u5b9a\u6570\u540d\u306f\u6163\u7fd2\u7684\u306b\u5168\u3066\u5927\u6587\u5b57\u3067\u5b9a\u7fa9\u3059\u308b<\/li>\n\n\n\n<li>\u30fb\u5b9a\u6570\u306e\u540d\u524d\u306b\u4f7f\u7528\u3067\u304d\u308b\u306e\u306f\u3001\u534a\u89d2\u82f1\u6570\u5b57\u3068_\uff08\u30a2\u30f3\u30c0\u30fc\u30b9\u30b3\u30a2\uff09<\/li>\n\n\n\n<li>\u30fb\u5b9a\u6570\u540d\u306e\u6700\u521d\u306b\u6570\u5b57\u306f\u4f7f\u3048\u306a\u3044<\/li>\n\n\n\n<li>\u30fb\u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u306f\u533a\u5225\u3055\u308c\u308b<\/li>\n\n\n\n<li>\u30fb\u5b9a\u6570\u306f\u518d\u5b9a\u7fa9\u3001\u518d\u4ee3\u5165\u304c\u3067\u304d\u306a\u3044<\/li>\n\n\n\n<li>\uff08\u5148\u306b\u5b9a\u7fa9\u3057\u305f\u5b9a\u6570\u306e\u5024\u304c\u4f7f\u7528\u3055\u308c\u308b\uff09<\/li>\n<\/ul>\n\n\n\n<p>\u3068\u306a\u308a\u307e\u3059\u3002\u30b3\u30fc\u30c9\u3067\u78ba\u8a8d\u3057\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\ndefine(NAME , &quot;\u9234\u6728\u4e00\u90ce&quot;);\necho NAME ; \/\/ \u300c\u9234\u6728\u4e00\u90ce\u300d\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002\ndefine(NAME , &quot;\u7530\u4e2d\u3055\u3093&quot;); \/\/\u65e2\u306bNAME\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u518d\u5b9a\u7fa9\u306f\u3067\u304d\u307e\u305b\u3093\u3002\necho NAME ; \/\/ \u5148\u306b\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u300c\u9234\u6728\u4e00\u90ce\u300d\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002\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: #DCDCAA\">define<\/span><span style=\"color: #D4D4D4\">(NAME , <\/span><span style=\"color: #CE9178\">&quot;\u9234\u6728\u4e00\u90ce&quot;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">echo<\/span><span style=\"color: #D4D4D4\"> NAME ; <\/span><span style=\"color: #6A9955\">\/\/ \u300c\u9234\u6728\u4e00\u90ce\u300d\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">define<\/span><span style=\"color: #D4D4D4\">(NAME , <\/span><span style=\"color: #CE9178\">&quot;\u7530\u4e2d\u3055\u3093&quot;<\/span><span style=\"color: #D4D4D4\">); <\/span><span style=\"color: #6A9955\">\/\/\u65e2\u306bNAME\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u518d\u5b9a\u7fa9\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">echo<\/span><span style=\"color: #D4D4D4\"> NAME ; <\/span><span style=\"color: #6A9955\">\/\/ \u5148\u306b\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u300c\u9234\u6728\u4e00\u90ce\u300d\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">?&gt;<\/span><\/span><\/code><\/pre><\/div>\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\u3067\u306ePHP\u30d6\u30ed\u30c3\u30af\u30fb\u5909\u6570\u30fb\u5b9a\u6570\u30fb\u4ee3\u5165\u6f14\u7b97\u5b50\u3092\u3054\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3057\u305f\u3002\u6b21\u56de\u306fPHP\u306b\u304a\u3051\u308b\u30c7\u30fc\u30bf\u578b\u3092\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br><a href=\"https:\/\/tetraup.com\/news_topics\/column\/php-part6\/\" title=\"\">\u975e\u30a8\u30f3\u30b8\u30cb\u30a2\u3067\u3082\u77e5\u3089\u306a\u3044\u3068\u30e4\u30d0\u30a4\u3000Part6\u301c\u30c7\u30fc\u30bf\u578b\u3092\u7406\u89e3\u3057\u3088\u3046\u301c<\/a>\u306b\u79fb\u52d5\u3059\u308b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6700\u5f8c\u306b<\/h2>\n\n\n\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u72ec\u5b66\u3067\u884c\u3046\u3068\u632b\u6298\u3059\u308b\u3053\u3068\u304c\u3057\u3070\u3057\u3070\u3042\u308a\u307e\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3093\u3067\u307f\u305f\u3044\u65b9\u3001\u77ed\u671f\u9593\u3067\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u8eab\u306b\u3064\u3051\u305f\u3044\u65b9\u306f<a href=\"https:\/\/education.knocknote.jp\/wish\/\">64\u6642\u9593\u3067\u201d\u306a\u308a\u305f\u3044\u201d\u3092\u53f6\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300cWISH\u300d<\/a>\u306b\u304a\u6c17\u8efd\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002\u73fe\u5728\u7121\u6599\u30ab\u30a6\u30f3\u30bb\u30ea\u30f3\u30b0\u3084\u3001\u5165\u4f1a\u91d1\u7121\u6599\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u3001\u3055\u3089\u306b\u53d7\u8b1b\u659920\uff05\u30aa\u30d5\u306e\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u3092\u958b\u50ac\u3057\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u306f\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3068\u958b\u767a\u74b0\u5883\u3092\u7528\u610f\u3057\u3066\u3001\u81ea\u5206\u304c\u66f8\u3044\u305f\u30b3\u30fc\u30c9\u3092\u30d6\u30e9\u30a6\u30b6\u306b\u8868\u793a\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u5b9f\u65bd\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306fPHP\u306b\u304a\u3051\u308bPHP\u30d6\u30ed\u30c3\u30af\u30fb\u5909\u6570\u30fb\u5b9a\u6570\u30fb\u4ee3\u5165\u6f14\u7b97\u5b50\u3092\u3054\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002PHP\u3092\u7528\u3044\u305f\u30d6\u30e9\u30a6\u30b6\u3067\u306e\u8868\u793a\u65b9\u6cd5 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":9040,"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-7417","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\/7417","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=7417"}],"version-history":[{"count":4,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/posts\/7417\/revisions"}],"predecessor-version":[{"id":9041,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/posts\/7417\/revisions\/9041"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/media\/9040"}],"wp:attachment":[{"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/media?parent=7417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/categories?post=7417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/tags?post=7417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}