{"id":21685,"date":"2017-04-20T12:43:07","date_gmt":"2017-04-20T03:43:07","guid":{"rendered":"http:\/\/www.sejuku.net\/blog\/?p=21685"},"modified":"2024-05-06T11:41:43","modified_gmt":"2024-05-06T02:41:43","slug":"%e3%80%90php%e5%85%a5%e9%96%80%e3%80%91%e9%85%8d%e5%88%97%e3%81%ae%e7%b5%90%e5%90%88%e6%96%b9%e6%b3%95%e3%81%be%e3%81%a8%e3%82%81","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/21685","title":{"rendered":"\u3010PHP\u5165\u9580\u3011\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u307e\u3068\u3081\uff01"},"content":{"rendered":"<p>PHP\u3067\u306f\u3001<span style=\"color: #0000ff;\"><strong>\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u3067\u914d\u5217\u3092\u7d50\u5408<\/strong><\/span>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u30fbarray_merge\u95a2\u6570\u3067\u914d\u5217\u306b\u914d\u5217\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5<br \/>\n\u30fbimplode\u95a2\u6570\u3067\u914d\u5217\u306b\u6587\u5b57\u5217\u3092\u7d50\u5408\u3059\u308b\u65b9\u6cd5<\/strong><\/span><\/p>\n<p>\u3068\u3044\u3046\u57fa\u672c\u7684\u306a\u5185\u5bb9\u304b\u3089\u3001<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u30fb\u30d7\u30e9\u30b9\u6f14\u7b97\u5b50\u3067\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u65b9\u6cd5\u3068\u6ce8\u610f\u70b9<br \/>\n\u30fbarray_combine\u95a2\u6570\u3067\u30ad\u30fc\u3068\u5024\u306e\u914d\u5217\u304b\u3089\u9023\u60f3\u914d\u5217\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5<br \/>\n\u30fb\u901f\u5ea6\u9762\u306e\u691c\u8a3c<\/strong><\/span><\/p>\n<p>\u306a\u3069\u306e\u5fdc\u7528\u7684\u306a\u4f7f\u3044\u65b9\u306b\u95a2\u3057\u3066\u3082\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u305d\u3093\u306a<span style=\"color: #ff0000; background-color: #ffff99;\"><strong>\u914d\u5217\u306e\u7d50\u5408\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3001\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\uff01<br \/>\n<\/strong><\/span><\/p>\n<h2>\u914d\u5217\u3092\u7d50\u5408\u3059\u308b<\/h2>\n<h3>array_merge\u3068\u306f<\/h3>\n<p><span style=\"color: #339966;\"><strong>array_merge<\/strong><\/span>\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u914d\u5217\u306e\u5f8c\u308d\u306b\u914d\u5217\u3092\u8ffd\u52a0\uff08\u7d50\u5408\uff09\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><strong>\u66f8\u304d\u65b9\uff1a<\/strong><\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >array array_marge(\u6700\u521d\u306e\u914d\u5217\u540d, \u8ffd\u52a0\u3059\u308b\u914d\u52171,  (, \u8ffd\u52a0\u3059\u308b\u914d\u52172, \u2026)<\/pre>\n<p><strong>\u5f15\u6570\uff1a<\/strong><br \/>\n\u7b2c\u4e00\u5f15\u6570\u306b\u306f\u6700\u521d\u306e\u914d\u5217\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u7b2c\u4e00\u5f15\u6570\u4ee5\u964d\u306f\u8ffd\u52a0\u3057\u3066\u3044\u304f\u914d\u5217\u30921\u3064\u3001\u307e\u305f\u306f\u8907\u6570\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u8fd4\u308a\u5024\uff1a<\/strong><br \/>\n\u7d50\u5408\u3057\u305f\u7d50\u679c\u306e\u914d\u5217\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<h3>array_merge\u306e\u4f7f\u3044\u65b9<\/h3>\n<p>\u3053\u3053\u3067\u306f<span style=\"color: #339966;\"><strong>array_merge<\/strong><\/span>\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u4ee5\u4e0b\u306b\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u7c21\u5358\u306a\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<br \/>\n<strong><br \/>\n\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e01<\/strong><\/p>\n<pre class=\"lang:php decode:true \" >$fruits1 = ['apple', 'orange', 'melon', 'banana', 'pineapple'];\r\n$fruits2 = ['strawberry', 'cherry', 'watermelon'];\r\n\r\n\/\/\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\r\n$fruits_merge = array_merge($fruits1, $fruits2);\r\n\r\nprint_r($fruits_merge);<\/pre>\n<p><strong>\u5b9f\u884c\u7d50\u679c\uff1a<\/strong><\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >Array\r\n(\r\n    [0] =&gt; apple\r\n    [1] =&gt; orange\r\n    [2] =&gt; melon\r\n    [3] =&gt; banana\r\n    [4] =&gt; pineapple\r\n    [5] =&gt; strawberry\r\n    [6] =&gt; cherry\r\n    [7] =&gt; watermelon\r\n)<\/pre>\n<p>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u914d\u5217$fruits1\u3068$fruits2\u3092\u4f5c\u6210\u3057\u3001array_merge\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066<span style=\"color: #0000ff;\"><strong>$fruits1\u306e\u5f8c\u308d\u306b$fruits2\u3092\u7d50\u5408<\/strong><\/span>\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6700\u521d\u306e\u914d\u5217\u3068\u8ffd\u52a0\u3059\u308b\u914d\u5217\u306b\u540c\u3058\u30ad\u30fc\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u7d50\u5408\u6642\u306b<span style=\"color: #ff0000;\"><strong>\u8ffd\u52a0\u3059\u308b\u914d\u5217\u306e\u30ad\u30fc\u306b\u4e0a\u66f8\u304d\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u306e\u3067\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/strong><\/span><\/p>\n<p><strong>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e02<\/strong><\/p>\n<pre class=\"lang:php decode:true \" >$array1 = ['val1' =&gt; 100, 1, 2];\r\n$array2 = array(3, 4, 'val1' =&gt; 200, 'val2' =&gt; 500, 5);\r\n\r\n$result = array_merge($array1, $array2);\r\nprint_r($result);<\/pre>\n<p><strong>\u5b9f\u884c\u7d50\u679c\uff1a<\/strong><\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >Array\r\n(\r\n    [val1] =&gt; 200\r\n    [0] =&gt; 1\r\n    [1] =&gt; 2\r\n    [2] =&gt; 3\r\n    [3] =&gt; 4\r\n    [val2] =&gt; 500\r\n    [4] =&gt; 5\r\n)<\/pre>\n<p>array_merge\u95a2\u6570\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u3082\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u306d\uff01<br \/>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/28533\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/image-310-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010PHP\u5165\u9580\u3011array_merge\u3067\u914d\u5217\u3092\u7c21\u5358\u306b\u7d50\u5408\u3059\u308b\u65b9\u6cd5<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            <\/p>\n<h2>\u914d\u5217\u3092\u6587\u5b57\u5217\u3067\u7d50\u5408\u3059\u308b<\/h2>\n<h3>implode\u3068\u306f<\/h3>\n<p><span style=\"color: #339966;\"><strong>implode<\/strong><\/span>\u95a2\u6570\u306f\u3001\u914d\u5217\u306e\u5024\u3092\u6587\u5b57\u5217\u3067\u7d50\u5408\u3059\u308b\u3068\u304d\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u66f8\u304d\u65b91\uff1a<\/strong><\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >string  implode('\u7d50\u5408\u3059\u308b\u6587\u5b57\u5217', \u914d\u5217\u540d)<\/pre>\n<p><strong>\u66f8\u304d\u65b92\uff1a<\/strong><\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >string  implode(\u914d\u5217\u540d)<\/pre>\n<p><strong>\u5f15\u6570\uff1a<\/strong><br \/>\n\u7d50\u5408\u3059\u308b\u6587\u5b57\u5217\u306f\u914d\u5217\u306e\u8981\u7d20\u3092\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u3067\u9023\u7d50\u3057\u305f\u3044\u3068\u304d\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n\u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u7a7a\u6587\u5b57\u5217\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>implode\u95a2\u6570\u306b\u95a2\u3057\u3066\u306f\u3001<span style=\"color: #0000ff;\"><strong>\u5f15\u6570\u3092\u3069\u3061\u3089\u306e\u9806\u756a\u3067\u3082\u6307\u5b9a<\/strong><\/span>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\uff08\u6b74\u53f2\u7684\u306a\u7406\u7531\u3068\u306e\u3053\u3068\u3067\u3059\uff09<\/p>\n<p>\u3057\u304b\u3057\u3001\u6df7\u4e71\u3092\u907f\u3051\u308b\u305f\u3081\u306b\u30de\u30cb\u30e5\u30a2\u30eb\u3084\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u8a18\u8f09\u3055\u308c\u305f\u9806\u756a\u3067\u3001\u4f7f\u7528\u3059\u308b\u306e\u304c\u671b\u307e\u3057\u3044\u3068\u8a00\u3048\u307e\u3059\u3002<\/p>\n<p><strong>\u8fd4\u308a\u5024\uff1a<\/strong><br \/>\n\u914d\u5217\u306e\u8981\u7d20\u9593\u306b<span style=\"color: #0000ff;\"><strong>\u7d50\u5408\u3059\u308b\u6587\u5b57\u5217\u3067\u306f\u3055\u3093\u30671\u3064\u306e\u6587\u5b57\u5217<\/strong><\/span>\u306b\u3057\u305f\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<h3>implode\u306e\u4f7f\u3044\u65b9<\/h3>\n<p>\u3053\u3053\u3067\u306fimplode\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<br \/>\n<strong><br \/>\n\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e01\uff1a<\/strong><\/p>\n<pre class=\"lang:php decode:true \" >$fruits = ['apple', 'orange', 'melon'];\r\n\r\n\/\/implode\u3092\u4f7f\u7528\u3057\u3066\u914d\u5217\u306e\u8981\u7d20\u306b'\/'\u3092\u7d50\u5408\u3059\u308b\r\n$slash = implode('\/', $fruits);\r\n\r\necho $slash;<\/pre>\n<p><strong>\u5b9f\u884c\u7d50\u679c\uff1a<\/strong><\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >apple\/orange\/melon<\/pre>\n<p>\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u3001\u7d50\u5408\u3059\u308b\u6587\u5b57\u5217\u306b\u2019\/\u2019(\u30b9\u30e9\u30c3\u30b7\u30e5)\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u7d50\u679c\u306e\u3068\u304a\u308a\u3001<span style=\"color: #0000ff;\"><strong>\u914d\u5217\u306e\u8981\u7d20\u9593\u306b\u2019\/\u2019\u304c\u7d50\u5408\u3055\u308c\u3066\u3044\u308b<\/strong><\/span>\u306e\u304c\u308f\u304b\u308a\u307e\u3059\u306d\uff01<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306bHTML\u306e\u30bf\u30b0\u3067\u7d50\u5408\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p><strong>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e02\uff1a<\/strong><\/p>\n<pre class=\"lang:php decode:true \" >$array = ['\u30ea\u30b9\u30c81', '\u30ea\u30b9\u30c82', '\u30ea\u30b9\u30c83'];\r\n\r\necho &quot;&lt;ul&gt;&lt;li&gt;&quot; . implode(&quot;&lt;\/li&gt;&lt;li&gt;&quot;, $array) . &quot;&lt;\/li&gt;&lt;\/ul&gt;&quot;;<\/pre>\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-09-03-8.49.25.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2017-09-03 8.49.25\" width=\"308\" height=\"152\" class=\"aligncenter size-full wp-image-31888\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-09-03-8.49.25.png 308w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-09-03-8.49.25-150x74.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2017-09-03-8.49.25-300x148.png 300w\" sizes=\"(max-width: 308px) 100vw, 308px\" \/><\/p>\n<h2>\u30d7\u30e9\u30b9(+)\u6f14\u7b97\u5b50\u3067\u914d\u5217\u3092\u7d50\u5408\u3059\u308b<\/h2>\n<p><span style=\"color: #339966;\"><strong>\u30d7\u30e9\u30b9(+)\u6f14\u7b97\u5b50<\/strong><\/span>\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3082\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><strong>\u66f8\u304d\u65b9\uff1a<\/strong><\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >$array = $\u914d\u52171 + $\u914d\u52172;<\/pre>\n<p><strong>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0<\/strong><\/p>\n<pre class=\"lang:php decode:true \" >$array1 = ['val1' =&gt; 100, 'val2' =&gt; 200, 'val3' =&gt; 300];\r\n$array2 = ['val4' =&gt; 400, 'val5' =&gt; 500];\r\n\r\n\/\/\u30d7\u30e9\u30b9\u6f14\u7b97\u5b50\u3067\u914d\u5217\u540c\u58eb\u3092\u7d50\u5408\u3059\u308b\r\n$result = $array1 + $array2;\r\n\r\nprint_r($result);<\/pre>\n<p><strong>\u5b9f\u884c\u7d50\u679c\uff1a<\/strong><\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >Array\r\n(\r\n    [val1] =&gt; 100\r\n    [val2] =&gt; 200\r\n    [val3] =&gt; 300\r\n    [val4] =&gt; 400\r\n    [val5] =&gt; 500\r\n)<\/pre>\n<h3>\u30d7\u30e9\u30b9\u6f14\u7b97\u5b50\u3067\u306e\u6ce8\u610f\u70b9<\/h3>\n<p><span style=\"color: #339966;\"><strong>\u30d7\u30e9\u30b9\u6f14\u7b97\u5b50(+)<\/strong><\/span>\u3092\u4f7f\u7528\u3059\u308c\u3070\u3001\u7c21\u5358\u306b\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u6ce8\u610f\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30e9\u30b9\u6f14\u7b97\u5b50\u3067\u306e\u7d50\u5408\u306f\u3001\u5358\u7d14\u306b\u914d\u52171\u306e\u5f8c\u308d\u306b\u914d\u52172\u304c\u7d50\u5408\u3055\u308c\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u914d\u5217\u306e<span style=\"color: #ff0000;\"><strong>\u8981\u7d20\u30ad\u30fc\u304c\u91cd\u8907\u3057\u3066\u3044\u305f\u5834\u5408\u306f\u3001\u5148\u306e\u914d\u5217\u306e\u8981\u7d20\u756a\u53f7\u304c\u512a\u5148<\/strong><\/span>\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30d7\u30e9\u30b9\u6f14\u7b97\u5b50\u3067\u914d\u5217\u3092\u7d50\u5408\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u3001fruits2\u306e\u5024\u306f\u5ec3\u68c4\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p><strong>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0<\/strong><\/p>\n<pre class=\"lang:php decode:true \" >$fruits1 = [1 =&gt; 'apple', 2 =&gt; 'orange', 3 =&gt; 'melon'];\r\n$fruits2 = [1 =&gt; 'banana', 2 =&gt; 'pineapple'];\r\n\r\n\/\/\u30d7\u30e9\u30b9\u6f14\u7b97\u5b50\u3067\u914d\u5217\u540c\u58eb\u3092\u7d50\u5408\u3059\u308b\r\n$fruits_merge = $fruits1 + $fruits2;\r\n\r\nprint_r($fruits_merge);<\/pre>\n<p><strong>\u5b9f\u884c\u7d50\u679c\uff1a<\/strong><\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >Array\r\n(\r\n    [1] =&gt; apple\r\n    [2] =&gt; orange\r\n    [3] =&gt; melon\r\n)<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\u306e\u3068\u304a\u308a\u3001<span style=\"color: #ff0000;\"><strong>\u8981\u7d20\u30ad\u30fc\u304c\u91cd\u8907<\/strong><\/span>\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u914d\u5217fruits2\u306e\u5024\u306f\u53cd\u6620\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u30d7\u30e9\u30b9\u6f14\u7b97\u5b50\u3067\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u5834\u5408\u306f\u3001<span style=\"color: #0000ff;\"><strong>\u9023\u60f3\u914d\u5217\u3067\u8981\u7d20\u30ad\u30fc\u304c\u91cd\u8907\u3057\u3066\u3044\u306a\u3044\u304b\u3001\u628a\u63e1<\/strong><\/span>\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>2\u3064\u306e\u914d\u5217\u304b\u3089\u9023\u60f3\u914d\u5217\u3092\u751f\u6210\u3059\u308b<\/h2>\n<h3>array_combine\u3068\u306f<\/h3>\n<p><span style=\"color: #339966;\"><strong>array_combine<\/strong><\/span>\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308c\u3070\u3001\u6307\u5b9a\u3057\u305f2\u3064\u306e\u914d\u5217\u3092\u30ad\u30fc\u3068\u5024\u306e\u914d\u5217\u3068\u3057\u3066\u3001\u7d50\u5408\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n<strong><br \/>\n\u66f8\u304d\u65b9\uff1a<\/strong><\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >array_combine($\u30ad\u30fc\u914d\u5217\u3001$\u5024\u914d\u5217)<\/pre>\n<p><strong>\u5f15\u6570\uff1a<\/strong><br \/>\n\u7b2c\u4e00\u5f15\u6570\u306b\u306f\u30ad\u30fc\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u914d\u5217\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u7121\u52b9\u306a\u5024\u3092\u6307\u5b9a\u3057\u305f\u500d\u306f\u3001\u6587\u5b57\u5217\u306b\u5909\u63db\u3055\u308c\u307e\u3059\u3002<br \/>\n\u7b2c\u4e8c\u5f15\u6570\u306b\u306f\u5024\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u914d\u5217\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u8fd4\u308a\u5024\uff1a<\/strong><br \/>\n<span style=\"color: #0000ff;\"><strong>\u30ad\u30fc\u914d\u5217\u3068\u5024\u914d\u5217\u3092\u7d50\u5408\u3057\u305f\u914d\u5217<\/strong><\/span>\u3092\u8fd4\u3057\u307e\u3059\u3002\u4e92\u3044\u306b\u8981\u7d20\u6570\u304c\u4e00\u81f4\u3057\u306a\u3044\u5834\u5408\u306fFALSE\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<h3>array_combine\u306e\u4f7f\u3044\u65b9<\/h3>\n<p>\u3053\u3053\u3067\u306f<span style=\"color: #339966;\"><strong>array_combine<\/strong><\/span>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u30012\u3064\u306e\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0<\/strong><\/p>\n<pre class=\"lang:php decode:true \" >$fruits = ['apple', 'orange', 'melon'];\r\n$value = [&quot;100\u5186&quot;, &quot;250\u5186&quot;, &quot;300\u5186&quot;];\r\n\r\n\/\/array_combine\u3092\u4f7f\u7528\u3057\u3066\u30ad\u30fc\u3068\u5024\u3092\u7d50\u5408\u3059\u308b\r\n$fruits_value = array_combine($fruits, $value);\r\n\r\nprint_r($fruits_value);<\/pre>\n<p><strong>\u5b9f\u884c\u7d50\u679c\uff1a<\/strong><\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >Array\r\n(\r\n    [apple] =&gt; 100\u5186\r\n    [orange] =&gt; 250\u5186\r\n    [melon] =&gt; 300\u5186\r\n)<\/pre>\n<p>\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u5546\u54c1\u540d\u3092\u30ad\u30fc\u3068\u3059\u308b\u914d\u5217\u3068\u5024\u6bb5\u3092\u5024\u3068\u3059\u308b\u914d\u5217\u3092\u4f5c\u6210\u3057\u3001array_combine\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u7d50\u5408\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u7d50\u679c\u306e\u3068\u304a\u308a\u3001\u7d50\u5408\u3057\u305f\u914d\u5217\u306f<span style=\"color: #0000ff;\"><strong>\u9023\u60f3\u914d\u5217\u3068\u3057\u3066\u3001\u30ad\u30fc\u3068\u5024\u304c\u7d10\u4ed8\u3051\u3055\u308c\u3066\u3044\u308b<\/strong><\/span>\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<h2>\u901f\u5ea6\u9762<\/h2>\n<p>\u914d\u5217\u306e\u64cd\u4f5c\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u3055\u307e\u3056\u307e\u306a\u7528\u9014\u3067\u4f7f\u308f\u308c\u308b\u975e\u5e38\u306b\u91cd\u8981\u306a\u51e6\u7406\u3068\u8a00\u3048\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u3088\u304f\u4f7f\u3046\u304b\u3089\u3053\u305d\u51e6\u7406\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3082\u6c17\u306b\u306a\u308b\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001\u3088\u304f\u4f3c\u305f\u914d\u5217\u306e\u51e6\u7406\u3068\u3057\u3066\u3001array_marge\u95a2\u6570\u3068[](\u89d2\u62ec\u5f27)\u3067\u3001\u305d\u308c\u305e\u308c<span style=\"color: #0000ff;\"><strong>\u914d\u5217\u306b\u5024\u3092\u8ffd\u52a0\u3057\u305f\u3068\u304d\u306e\u51e6\u7406\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6bd4\u8f03<\/strong><\/span>\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u6bd4\u8f03\u306b\u306f<span style=\"color: #339966;\"><strong>microtime<\/strong><\/span>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3001\u305d\u308c\u305e\u308c\u30eb\u30fc\u30d7\u306e\u4e2d\u306710000\u56de\u914d\u5217\u306b\u5024\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true \" >&lt;?php\r\n\r\n\/* array_merge *\/\r\n$fruits1 = ['apple', 'orange', 'melon'];\r\n$fruits2 = ['banana', 'pineapple'];\r\n\r\n\r\n$marge_start = microtime(true);\r\nfor ($i = 0 ; $i &lt; 10000 ; $i++){\r\n  $fruits1 = array_merge($fruits1, $fruits2);\r\n}\r\n$marge_end = microtime(true) - $marge_start;\r\n\r\necho 'array_merge : '.$marge_end .'\u79d2';\r\necho '&lt;br&gt;';\r\n\r\n\/* \u89d2\u62ec\u5f27 *\/\r\n$fruits = ['apple', 'orange', 'melon'];\r\n\r\n$brackets_start = microtime(true);\r\nfor ($i = 0 ; $i &lt; 10000 ; $i++){\r\n  $fruits[] = 'banana';\r\n  $fruits[] = 'pineapple';\r\n}\r\n$brackets_end = microtime(true) - $brackets_start;\r\n\r\necho '\u89d2\u62ec\u5f27 : '.$brackets_end .'\u79d2';\r\n\r\n?&gt;<\/pre>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >\u5b9f\u884c\u7d50\u679c\r\narray_merge : 2.13677287102\u79d2\r\n\u89d2\u62ec\u5f27 : 0.00154280662537\u79d2<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\u306e\u3068\u304a\u308a\u3001<span style=\"color: #0000ff;\"><strong>\u89d2\u62ec\u5f27\u3092\u4f7f\u7528\u3057\u305f\u307b\u3046\u304c\u5727\u5012\u7684\u306b\u51e6\u7406\u304c\u65e9\u3044<\/strong><\/span>\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u304f\u306b\u914d\u5217\u306e\u8981\u7d20\u6570\u304c\u81a8\u5927\u306b\u306a\u308b\u3068\u3001\u305d\u306e\u5dee\u306f\u9855\u8457\u3067\u3059\u3002<\/p>\n<h2>array\u95a2\u6570\u306b\u3064\u3044\u3066\u3082\u3063\u3068\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u65b9\u3078<\/h2>\n<p>\u914d\u5217\u3092\u64cd\u4f5c\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u306b\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u306d\uff01<\/p>\n<p>\u30fbarray_sum\u95a2\u6570\u306e\u4f7f\u3044\u65b9<br \/>\n\u30fbarray_unique\u95a2\u6570\u306e\u4f7f\u3044\u65b9<br \/>\n\u30fbarray_values\u95a2\u6570\u306e\u4f7f\u3044\u65b9<br \/>\n\u30fbarray_keys\u95a2\u6570\u306e\u4f7f\u3044\u65b9<br \/>\n\u30fbarray_filter\u95a2\u6570\u306e\u4f7f\u3044\u65b9<br \/>\n\u30fbarray_map\u95a2\u6570\u306e\u4f7f\u3044\u65b9<br \/>\n\u30fbarray_push\u95a2\u6570\u306e\u4f7f\u3044\u65b9<br \/>\n\u30fbarray_key_exists\u95a2\u6570\u306e\u4f7f\u3044\u65b9<br \/>\n\u30fbarray_pad\u95a2\u6570\u306e\u4f7f\u3044\u65b9<br \/>\n\u30fbimplode\u95a2\u6570\u306e\u4f7f\u3044\u65b9<br \/>\n\u30fb\u914d\u5217\u306e\u524a\u9664\u65b9\u6cd5<br \/>\n\u30fb\u914d\u5217\u306e\u691c\u7d22\u65b9\u6cd5<br \/>\n\u30fb\u3088\u304f\u4f7f\u7528\u3059\u308b\u914d\u5217\u64cd\u4f5c<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/25512\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/06\/image10-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010\u521d\u5fc3\u8005\u5fc5\u898b\uff01\u3011PHP\u306e\u3088\u304f\u4f7f\u3046\u914d\u5217\u64cd\u4f5c\u306e\u95a2\u6570\u307e\u3068\u3081(array)<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u3053\u3067\u306f\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3001<\/p>\n<p><strong>\u30fbarray_merge\u95a2\u6570\u3067\u914d\u5217\u306b\u914d\u5217\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5<br \/>\n\u30fbimplode\u95a2\u6570\u3067\u914d\u5217\u306b\u6587\u5b57\u5217\u3092\u7d50\u5408\u3059\u308b\u65b9\u6cd5<br \/>\n\u30fb\u30d7\u30e9\u30b9\u6f14\u7b97\u5b50\u3067\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u65b9\u6cd5\u3068\u6ce8\u610f\u70b9<br \/>\n\u30fbarray_combine\u95a2\u6570\u3067\u30ad\u30fc\u3068\u5024\u306e\u914d\u5217\u304b\u3089\u9023\u60f3\u914d\u5217\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5<br \/>\n\u30fb\u901f\u5ea6\u9762\u306e\u691c\u8a3c<\/strong><\/p>\n<p>\u306a\u3069\u306e\u3055\u307e\u3056\u307e\u306a\u7d50\u5408\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u914d\u5217\u306e\u7d50\u5408\u306a\u3069\u306e\u914d\u5217\u3092\u6271\u3063\u305f\u51e6\u7406\u306f\u3001\u5b9f\u969b\u306e\u958b\u767a\u3067\u3082\u3088\u304f\u4f7f\u7528\u3057\u307e\u3059\u306e\u3067\u3001\u3053\u306e\u6a5f\u4f1a\u306b\u305c\u3072\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/strong><\/span><\/p>\n<p>\u3082\u3057\u3001\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u65b9\u6cd5\u3092\u5fd8\u308c\u3066\u3057\u307e\u3063\u305f\u3089\u3001\u3053\u306e\u8a18\u4e8b\u3092\u601d\u3044\u51fa\u3057\u3066\u304f\u3060\u3055\u3044\u306d\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP\u3067\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u3067\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001 \u30fbarray_merge\u95a2\u6570\u3067\u914d\u5217\u306b\u914d\u5217\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5 \u30fbimplode\u95a2\u6570\u3067\u914d\u5217\u306b\u6587\u5b57\u5217\u3092\u7d50\u5408\u3059\u308b\u65b9\u6cd5 \u3068\u3044\u3046\u57fa\u672c\u7684\u306a\u5185\u5bb9\u304b\u3089\u3001 \u30fb\u30d7\u30e9\u30b9\u6f14\u7b97 [&hellip;]<\/p>\n","protected":false},"author":16433,"featured_media":31897,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2348],"tags":[38],"class_list":["post-21685","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php-study","tag-php"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u3010PHP\u5165\u9580\u3011\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u307e\u3068\u3081\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010PHP\u5165\u9580\u3011\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u307e\u3068\u3081\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sejuku.net\/blog\/21685\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010PHP\u5165\u9580\u3011\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u307e\u3068\u3081\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010PHP\u5165\u9580\u3011\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u307e\u3068\u3081\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/21685\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:published_time\" content=\"2017-04-20T03:43:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:41:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/04\/image2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21685#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21685\"},\"author\":{\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\"},\"headline\":\"\u3010PHP\u5165\u9580\u3011\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u307e\u3068\u3081\uff01\",\"datePublished\":\"2017-04-20T03:43:07+00:00\",\"dateModified\":\"2024-05-06T02:41:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21685\"},\"wordCount\":87,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21685#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/image2.jpg\",\"keywords\":[\"PHP\"],\"articleSection\":[\"PHP\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21685\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21685\",\"name\":\"\u3010PHP\u5165\u9580\u3011\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u307e\u3068\u3081\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21685#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21685#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/image2.jpg\",\"datePublished\":\"2017-04-20T03:43:07+00:00\",\"dateModified\":\"2024-05-06T02:41:43+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010PHP\u5165\u9580\u3011\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u307e\u3068\u3081\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21685#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21685\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21685#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/image2.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/image2.jpg\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/21685#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010PHP\u5165\u9580\u3011\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u307e\u3068\u3081\uff01\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\",\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\"},\"description\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-tech\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010PHP\u5165\u9580\u3011\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u307e\u3068\u3081\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010PHP\u5165\u9580\u3011\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u307e\u3068\u3081\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sejuku.net\/blog\/21685","og_locale":"ja_JP","og_type":"article","og_title":"\u3010PHP\u5165\u9580\u3011\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u307e\u3068\u3081\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010PHP\u5165\u9580\u3011\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u307e\u3068\u3081\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/21685","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_published_time":"2017-04-20T03:43:07+00:00","article_modified_time":"2024-05-06T02:41:43+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/04\/image2.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/21685#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/21685"},"author":{"name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095"},"headline":"\u3010PHP\u5165\u9580\u3011\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u307e\u3068\u3081\uff01","datePublished":"2017-04-20T03:43:07+00:00","dateModified":"2024-05-06T02:41:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/21685"},"wordCount":87,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/21685#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/04\/image2.jpg","keywords":["PHP"],"articleSection":["PHP\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/21685","url":"https:\/\/www.sejuku.net\/blog\/21685","name":"\u3010PHP\u5165\u9580\u3011\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u307e\u3068\u3081\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/21685#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/21685#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/04\/image2.jpg","datePublished":"2017-04-20T03:43:07+00:00","dateModified":"2024-05-06T02:41:43+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010PHP\u5165\u9580\u3011\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u307e\u3068\u3081\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/21685#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/21685"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/21685#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/04\/image2.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/04\/image2.jpg","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/21685#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010PHP\u5165\u9580\u3011\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u307e\u3068\u3081\uff01"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095","name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","caption":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8"},"description":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002","url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-tech"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/21685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/16433"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=21685"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/21685\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/31897"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=21685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=21685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=21685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}