{"id":28533,"date":"2017-08-03T18:48:14","date_gmt":"2017-08-03T09:48:14","guid":{"rendered":"http:\/\/www.sejuku.net\/blog\/?p=28533"},"modified":"2024-05-06T11:44:14","modified_gmt":"2024-05-06T02:44:14","slug":"%e3%80%90php%e5%85%a5%e9%96%80%e3%80%91array_merge%e9%96%a2%e6%95%b0%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e7%b7%8f%e3%81%be%e3%81%a8%e3%82%81%e9%85%8d%e5%88%97%e3%81%ae%e7%b5%90%e5%90%88","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/28533","title":{"rendered":"\u3010PHP\u5165\u9580\u3011array_merge\u3067\u914d\u5217\u3092\u7c21\u5358\u306b\u7d50\u5408\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>PHP\u3067\u306f\u3001\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u305f\u3081\u306e\u4fbf\u5229\u306a\u95a2\u6570\u304c\u7528\u610f\u3055\u308c\u3066\u3044\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\u306e\u4f7f\u3044\u65b9<br \/>\n\u30fbarray_merge_recursive\u95a2\u6570\u306e\u4f7f\u3044\u65b9<\/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\u914d\u5217\u306b\u6587\u5b57\u5217\u3092\u7d50\u5408\u3059\u308b\u65b9\u6cd5<br \/>\n\u30fb\u914d\u5217\u306b\u5024\u3092\u8ffd\u52a0\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5<\/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>\u3053\u3053\u3067\u306f\u305d\u3093\u306a<span style=\"color: #ff0000; background-color: #ffff99;\"><strong>array_merge\u95a2\u6570\u3092\u4f7f\u7528\u3057\u305f\u7d50\u5408\u65b9\u6cd5\u306a\u3069\u306b\u3064\u3044\u3066\u3001\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\uff01<br \/>\n<\/strong><\/span><\/p>\n<h2>\u914d\u5217\u3092\u7d50\u5408\u3057\u3066\u307f\u3088\u3046\uff01<\/h2>\n<p>\u3053\u3053\u3067\u306f\u3001<span style=\"color: #339966;\"><strong>array_merge<\/strong><\/span>\u95a2\u6570\u3068<span style=\"color: #339966;\"><strong>array_merge_recursive<\/strong><\/span>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u305f\u914d\u5217\u306e\u7d50\u5408\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h3>array_merge\u95a2\u6570\u306e\u4f7f\u3044\u65b9<\/h3>\n<p>\u914d\u5217\u306e\u8981\u7d20\u306e\u6700\u5f8c\u306b<span style=\"color: #0000ff;\"><strong>\u3072\u3068\u3064\u307e\u305f\u306f\u8907\u6570\u306e\u914d\u5217\u3092\u7d50\u5408<\/strong><\/span>\u3059\u308b\u3068\u304d\u306f\u3001<span style=\"color: #339966;\"><strong>array_merge<\/strong><\/span>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>array_merge\u95a2\u6570\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<p>\u66f8\u304d\u65b9\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >array array_merge ( array $\u914d\u5217 [, \u8ffd\u52a0\u3059\u308b\u914d\u5217 $... ] )<\/pre>\n<p>\u5f15\u6570\uff1a<br \/>\n\u7b2c\u4e00\u5f15\u6570\u306b\u306f\u5bfe\u8c61\u306e\u914d\u5217\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u4ee5\u964d\u306e\u5f15\u6570\u3067\u306f\u8ffd\u52a0\u3059\u308b\u914d\u5217\u30921\u3064\u307e\u305f\u306f\u8907\u6570\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u8fd4\u308a\u5024\uff1a<br \/>\n\u5bfe\u8c61\u306e\u914d\u5217\u306e\u6700\u5f8c\u306b\u914d\u5217\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u3072\u3068\u3064\u307e\u305f\u306f\u8907\u6570\u306e\u914d\u5217\u3092\u30de\u30fc\u30b8\u3057\u3001<span style=\"color: #0000ff;\"><strong>\u30de\u30fc\u30b8\u3057\u305f\u7d50\u679c\u306e\u914d\u5217\u3092\u8fd4\u3057\u307e\u3059\u3002<\/strong><\/span><\/p>\n<h4>\u4e00\u6b21\u5143\u914d\u5217\u3092\u7d50\u5408\u3059\u308b<\/h3>\n<p>\u4ee5\u4e0b\u306b\u4e00\u6b21\u5143\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>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e01<\/p>\n<pre class=\"lang:php decode:true \" >\/\/\u914d\u5217\u3092\u4f5c\u6210\r\n$array1 = [1, 2, 3];\r\n$array2 = [10, 20, 30];\r\n$array3 = [100, 200, 300];\r\n\r\n\/\/\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\r\n$array = array_merge($array1, $array2, $array3);\r\n\r\nprint_r($array);<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/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; 1\r\n    [1] =&gt; 2\r\n    [2] =&gt; 3\r\n    [3] =&gt; 10\r\n    [4] =&gt; 20\r\n    [5] =&gt; 30\r\n    [6] =&gt; 100\r\n    [7] =&gt; 200\r\n    [8] =&gt; 300\r\n)<\/pre>\n<p>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u3001array_merge\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001<span style=\"color: #0000ff;\"><strong>\u914d\u5217$array1\u306e\u5f8c\u308d\u306b$array2\u3001$array3\u3092\u6307\u5b9a<\/strong><\/span>\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u7d50\u679c\u306e\u3068\u304a\u308a\u6307\u5b9a\u3057\u305f\u914d\u5217\u304c\u7d50\u5408\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u306d\uff01<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6587\u5b57\u5217\u306e\u914d\u5217\u3082\u3082\u3061\u308d\u3093\u7d50\u5408\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e02<\/p>\n<pre class=\"lang:php decode:true \" >\/\/\u914d\u5217\u3092\u4f5c\u6210\r\n$fruits1 = ['apple', 'orange', 'melon', 'banana', 'pineapple'];\r\n$fruits2 = ['strawberry', 'cherry', 'watermelon'];\r\n$fruits3 = ['anzu', 'papaya'];\r\n\r\n\/\/\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\r\n$fruits_merge = array_merge($fruits1, $fruits2, $fruits3);\r\n\r\nprint_r($fruits_merge);<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >\r\nArray\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    [8] =&gt; anzu\r\n    [9] =&gt; papaya\r\n)<\/pre>\n<h4>\u9023\u60f3\u914d\u5217\u3092\u7d50\u5408\u3059\u308b<\/h4>\n<p>\u9023\u60f3\u914d\u5217\u3082\u4e00\u6b21\u5143\u914d\u5217\u540c\u69d8\u306barray_merge\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306b\u9023\u60f3\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>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0<\/p>\n<pre class=\"lang:php decode:true \" >\/\/\u914d\u5217\u3092\u4f5c\u6210\r\n$fruits1 = [\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          ];\r\n\r\n$fruits2 = [\r\n            0=&gt;'strawberry',\r\n            1=&gt;'cherry',\r\n            2=&gt;'watermelon'\r\n           ];\r\n\r\n\/\/\u914d\u5217\u3092\u30de\u30fc\u30b8\u3059\u308b\r\n$fruits_merge = array_merge($fruits1, $fruits2);\r\n\r\nprint_r($fruits_merge);<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/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>\u5b9f\u884c\u7d50\u679c\u306e\u3068\u304a\u308a\u3001array_merge\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308c\u3070\u3001<span style=\"color: #0000ff;\"><strong>\u9023\u60f3\u914d\u5217\u3082\u7d50\u5408\u3067\u304d\u308b<\/strong><\/span>\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u306d\uff01<\/p>\n<p>\u3057\u304b\u3057\u3001\u914d\u5217$fruits2\u3067\u306f$fruits1\u3068\u91cd\u8907\u3057\u3066\u3044\u308bKey\u5024\u3067\u3042\u308b0,1,2\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306bKey\u5024\u306b\u6570\u5024\u304c\u91cd\u8907\u3057\u3066\u3044\u305f\u5834\u5408\u306f\u3001<span style=\"color: #0000ff;\"><strong>\u30bc\u30ed\u304b\u3089\u59cb\u307e\u308b\u9023\u7d9a\u3057\u305f\u6570\u5024\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u4eca\u56de\u3067\u306f$fruits2\u306eKey\u5024\u304c0,1,2\u304b\u30895,6,7\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>array_merge_recursive\u95a2\u6570\u306e\u4f7f\u3044\u65b9<\/h3>\n<p>2\u3064\u4ee5\u4e0a\u306e\u914d\u5217\u3092\u518d\u5e30\u7684\u306b\u30de\u30fc\u30b8\u3059\u308b\u306b\u306f<span style=\"color: #339966;\"><strong>array_merge_recursive<\/strong><\/span>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u57fa\u672c\u7684\u306b\u306f\u524d\u8ff0\u3057\u305farray_merge\u95a2\u6570\u540c\u69d8\u306b\u3001<span style=\"color: #ff0000;\"><strong>\u914d\u5217\u306e\u8981\u7d20\u306e\u6700\u5f8c\u306b\u6307\u5b9a\u3057\u305f\u914d\u5217\u3092\u7d50\u5408\u3057\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>\u3057\u304b\u3057\u3001key\u306e\u6dfb\u5b57\u304c\u6587\u5b57\u5217\u306e\u5834\u5408\u306f\u3001<span style=\"color: #0000ff;\"><strong>\u5024\u3092\u4e0a\u66f8\u304d\u3057\u306a\u3044\u3067\u540c\u3058\u6587\u5b57\u5217\u540c\u58eb\u3067\u914d\u5217\u3092\u4f5c\u6210<\/strong><\/span>\u3057\u307e\u3059\u3002<\/p>\n<p>\u6dfb\u5b57\u304c\u6570\u5024\u306e\u5834\u5408\u306e\u52d5\u4f5c\u306farray_merge\u95a2\u6570\u3068\u540c\u69d8\u3067\u3059\u3002<\/p>\n<p>array_merge_recursive\u95a2\u6570\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<p>\u66f8\u304d\u65b9\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >array array_merge_recursive ( array $\u914d\u5217 [, \u8ffd\u52a0\u3059\u308b\u914d\u5217 $... ] )<\/pre>\n<p>\u5f15\u6570\uff1a<br \/>\n\u7b2c\u4e00\u5f15\u6570\u306b\u306f\u5bfe\u8c61\u306e\u914d\u5217\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u4ee5\u964d\u306e\u5f15\u6570\u3067\u8ffd\u52a0\u3059\u308b\u914d\u5217\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u8fd4\u308a\u5024\uff1a<br \/>\n\u5bfe\u8c61\u306e\u914d\u5217\u306e\u6700\u5f8c\u306b\u914d\u5217\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u3072\u3068\u3064\u307e\u305f\u306f\u8907\u6570\u306e\u914d\u5217\u3092\u30de\u30fc\u30b8\u3057\u3001<span style=\"color: #ff0000;\"><strong>\u30de\u30fc\u30b8\u3057\u305f\u7d50\u679c\u306e\u914d\u5217\u3092\u8fd4\u3057\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>\u4ee5\u4e0b\u306barray_merge_recursive\u95a2\u6570\u3067\u914d\u5217\u540c\u58eb\u3092\u7d50\u5408\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0<\/p>\n<pre class=\"lang:php decode:true \" >\/\/\u9023\u60f3\u914d\u5217\u3092\u4f5c\u6210\r\n$fruits1 = [\r\n            'key1'=&gt;'apple',\r\n            'key2'=&gt;'orange',\r\n            'key3'=&gt;'melon',\r\n            'key4'=&gt;'banana',\r\n            'key5'=&gt;'pineapple'\r\n          ];\r\n\r\n$fruits2 = [\r\n            'key1'=&gt;'strawberry',\r\n            'key2'=&gt;'cherry',\r\n            'key3'=&gt;'watermelon'\r\n           ];\r\n\r\n\/\/\u914d\u5217\u3092\u30de\u30fc\u30b8\u3059\u308b\r\n$fruits_merge = array_merge_recursive($fruits1, $fruits2);\r\n\r\nprint_r($fruits_merge);<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >Array\r\n(\r\n    [key1] =&gt; Array\r\n        (\r\n            [0] =&gt; apple\r\n            [1] =&gt; strawberry\r\n        )\r\n\r\n    [key2] =&gt; Array\r\n        (\r\n            [0] =&gt; orange\r\n            [1] =&gt; cherry\r\n        )\r\n\r\n    [key3] =&gt; Array\r\n        (\r\n            [0] =&gt; melon\r\n            [1] =&gt; watermelon\r\n        )\r\n\r\n    [key4] =&gt; banana\r\n    [key5] =&gt; pineapple\r\n)<\/pre>\n<p>\u524d\u8ff0\u3057\u305f\u3088\u3046\u306barray_merge_recursive\u95a2\u6570\u306f\u3001Key\u5024\u306e\u6dfb\u5b57\u304c\u6587\u5b57\u5217\u306e\u5834\u5408\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u540c\u3058\u6587\u5b57\u5217\u540c\u58eb\u3067\u914d\u5217\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/strong><\/span><\/p>\n<h2>\u30d7\u30e9\u30b9(+)\u6f14\u7b97\u5b50\u3067\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<span style=\"color: #0000ff;\"><strong>array_merge\u95a2\u6570\u3068\u540c\u69d8\u306b\u914d\u5217\u3092\u7d50\u5408<\/strong><\/span>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30e9\u30b9\u6f14\u7b97\u5b50\u3067\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u306b\u306f<span style=\"color: #339966;\"><strong>\u300c$\u914d\u52171 + $\u914d\u52172\u300d<\/strong><\/span>\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306b\u30d7\u30e9\u30b9\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3057\u3066\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e01<\/p>\n<pre class=\"lang:php decode:true \" >$fruits1 = [\r\n            'item1' =&gt; 'apple',\r\n            'item2' =&gt; 'orange',\r\n            'item3' =&gt; 'melon'];\r\n\r\n$fruits2 = [\r\n            'item4' =&gt; 'banana',\r\n            'item5' =&gt; 'pineapple'];\r\n\r\n$fruits = $fruits1 + $fruits2;\r\n\r\nprint_r($fruits);<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >Array\r\n(\r\n    [item1] =&gt; apple\r\n    [item2] =&gt; orange\r\n    [item3] =&gt; melon\r\n    [item4] =&gt; banana\r\n    [item5] =&gt; pineapple\r\n)<\/pre>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u30d7\u30e9\u30b9\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3082\u3001\u914d\u5217\u304c\u7d50\u5408\u3055\u308c\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u306d\uff01<\/p>\n<p>\u3053\u306e\u3088\u3046\u306barray_merge\u95a2\u6570\u3092\u4f7f\u308f\u306a\u304f\u3066\u3082\u3001\u30d7\u30e9\u30b9\u6f14\u7b97\u5b50\u3067\u914d\u5217\u306e\u7d50\u5408\u306f\u53ef\u80fd\u3067\u3059\u304c\u6ce8\u610f\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30e9\u30b9\u6f14\u7b97\u5b50\u306f\u914d\u52171\u306e\u5f8c\u308d\u306b\u914d\u52172\u304c\u7d50\u5408\u3055\u308c\u308b\u306e\u3067\u306f\u306a\u304f\u3001<span style=\"color: #0000ff;\"><strong>\u914d\u5217\u306e\u30ad\u30fc\u304c\u91cd\u8907\u3057\u3066\u3044\u305f\u5834\u5408\u306f\u3001\u5148\u306e\u914d\u5217\u306e\u30ad\u30fc\u304c\u512a\u5148<\/strong><\/span>\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7d50\u5408\u3057\u305f\u3044\u914d\u5217\u306e<span style=\"color: #ff0000;\"><strong>\u30ad\u30fc\u304c\u91cd\u8907\u3057\u3066\u3044\u305f\u3089\u3001\u7d50\u5408\u3059\u308b\u914d\u5217\u306e\u5024\u306f\u7834\u68c4<\/strong><\/span>\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e02<\/p>\n<pre class=\"lang:php decode:true \" >$fruits1 = [\r\n            'item1' =&gt; 'apple',\r\n            'item2' =&gt; 'orange',\r\n            'item3' =&gt; 'melon'];\r\n\r\n$fruits2 = [\r\n            'item1' =&gt; 'banana',\r\n            'item2' =&gt; 'pineapple'];\r\n\r\n$fruits = $fruits1 + $fruits2;\r\n\r\nprint_r($fruits);<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \" >Array\r\n(\r\n    [item1] =&gt; apple\r\n    [item2] =&gt; orange\r\n    [item3] =&gt; melon\r\n)<\/pre>\n<h2>\u914d\u5217\u306b\u6587\u5b57\u5217\u3092\u7d50\u5408(implode)<\/h2>\n<p>\u914d\u5217\u3068\u6587\u5b57\u5217\u3092\u7d50\u5408\u3057\u305f\u3044\u5834\u5408\u306f<span style=\"color: #339966;\"><strong>implode<\/strong><\/span>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f\u914d\u5217\u306e\u8981\u7d20\u9593\u306bimplode\u3067<span style=\"color: #0000ff;\"><strong>\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u3092\u306f\u3055\u3093\u3067\u30011\u3064\u306e\u6587\u5b57\u5217<\/strong><\/span>\u3068\u3057\u3066\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0<\/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\u30ab\u30f3\u30de','\u3092\u7d50\u5408\u3059\u308b\r\n$str = implode(',', $fruits);\r\n\r\necho $str;<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/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>implode\u95a2\u6570\u306e\u8a73\u3057\u3044\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u306e\u300cimplode\u306e\u4f7f\u3044\u65b9\u300d\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\uff01<br \/>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/21685\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/04\/image2-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010PHP\u5165\u9580\u3011\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u307e\u3068\u3081\uff01<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            <\/p>\n<h2>\u914d\u5217\u306b\u5024\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u307e\u3068\u3081<\/h2>\n<p>\u914d\u5217\u306b\u5024\u3092\u8ffd\u52a0\u3057\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u89d2\u62ec\u5f27([])\u3092\u4f7f\u7528\u3059\u308b<\/li>\n<li>array_push\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u5024\u3092\u8ffd\u52a0\u3059\u308b<\/li>\n<li>array_unshift\u95a2\u6570\u3067\u914d\u5217\u306e\u5148\u982d\u306b\u5024\u3092\u8ffd\u52a0<\/li>\n<li>array_splice\u95a2\u6570\u3067\u914d\u5217\u306e\u6307\u5b9a\u3057\u305f\u4f4d\u7f6e\u306b\u5024\u3092\u8ffd\u52a0\u3059\u308b<\/li>\n<\/ul>\n<p>\u305d\u3093\u306a\u914d\u5217\u306b\u3055\u307e\u3056\u307e\u306a\u5024\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\uff01<br \/>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/21649\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/04\/image-115-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010PHP\u5165\u9580\u3011\u914d\u5217\u30fb\u9023\u60f3\u914d\u5217\u306b\u5024\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u307e\u3068\u3081<\/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>PHP\u306b\u3064\u3044\u3066\u3082\u3063\u3068\u77e5\u308a\u305f\u3044\u65b9\u3078<\/h2>\n<p>\u300cPHP\u306b\u3064\u3044\u3066\u5b9f\u306f\u3044\u307e\u3044\u3061\u308f\u304b\u3063\u3066\u3044\u306a\u3044\u30fb\u30fb\u30fb\u300d<br \/>\n\u300c\u3082\u3063\u3068PHP\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\uff01\u300d<\/p>\n<p>\u3068\u601d\u3063\u3066\u3044\u308b\u65b9\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3082\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<br \/>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/4097\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2021\/01\/howto-02-3-150x85.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">PHP\u3068\u306f\u4f55\u304b\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01\u3067\u304d\u308b\u3053\u3068\u3084\u5c06\u6765\u6027\u3001\u5b66\u7fd2\u65b9\u6cd5\u3082\u7d39\u4ecb<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e749\u670824\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            <\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u3053\u3067\u306f\u914d\u5217\u306b\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u3001<\/p>\n<ul>\n<li>array_merge\u95a2\u6570\u3092\u4f7f\u7528\u3057\u305f\u914d\u5217\u306e\u7d50\u5408\u3059\u308b\u65b9\u6cd5<\/li>\n<li>array_merge_recursive\u95a2\u6570\u3092\u4f7f\u7528\u3057\u305f\u914d\u5217\u306e\u7d50\u5408\u3059\u308b\u65b9\u6cd5<\/li>\n<li>\u30d7\u30e9\u30b9\u6f14\u7b97\u5b50\u3067\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u65b9\u6cd5<\/li>\n<li>\u914d\u5217\u306b\u6587\u5b57\u5217\u3092\u7d50\u5408\u3059\u308b\u65b9\u6cd5<\/li>\n<\/ul>\n<p>\u306a\u3069\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u914d\u5217\u540c\u58eb\u3092\u7d50\u5408\u3059\u308b\u3068\u304d\u306b<span style=\"color: #0000ff;\"><strong>array_merge\u95a2\u6570\u306f\u3088\u304f\u4f7f\u7528\u3057\u307e\u3059<\/strong><\/span>\u306e\u3067\u3001\u4f7f\u3044\u65b9\u306f\u3088\u304f\u7406\u89e3\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3082\u3057array_merge\u95a2\u6570\u306e\u4f7f\u3044\u65b9\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\u914d\u5217\u3092\u7d50\u5408\u3059\u308b\u305f\u3081\u306e\u4fbf\u5229\u306a\u95a2\u6570\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001 \u30fbarray_merge\u95a2\u6570\u306e\u4f7f\u3044\u65b9 \u30fbarray_merge_recursive\u95a2\u6570\u306e\u4f7f\u3044\u65b9 \u3068\u3044\u3046\u57fa\u672c\u7684\u306a\u5185\u5bb9\u304b\u3089\u3001 \u30fb\u914d\u5217\u306b\u6587\u5b57\u5217\u3092\u7d50 [&hellip;]<\/p>\n","protected":false},"author":16433,"featured_media":47789,"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-28533","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\u3011array_merge\u3067\u914d\u5217\u3092\u7c21\u5358\u306b\u7d50\u5408\u3059\u308b\u65b9\u6cd5 | \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\u3011array_merge\u3067\u914d\u5217\u3092\u7c21\u5358\u306b\u7d50\u5408\u3059\u308b\u65b9\u6cd5 \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\/28533\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010PHP\u5165\u9580\u3011array_merge\u3067\u914d\u5217\u3092\u7c21\u5358\u306b\u7d50\u5408\u3059\u308b\u65b9\u6cd5 | \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\u3011array_merge\u3067\u914d\u5217\u3092\u7c21\u5358\u306b\u7d50\u5408\u3059\u308b\u65b9\u6cd5 \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\/28533\" \/>\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-08-03T09:48:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:44:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/image-310.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\\\/28533#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/28533\"},\"author\":{\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\"},\"headline\":\"\u3010PHP\u5165\u9580\u3011array_merge\u3067\u914d\u5217\u3092\u7c21\u5358\u306b\u7d50\u5408\u3059\u308b\u65b9\u6cd5\",\"datePublished\":\"2017-08-03T09:48:14+00:00\",\"dateModified\":\"2024-05-06T02:44:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/28533\"},\"wordCount\":110,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/28533#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/08\\\/image-310.jpg\",\"keywords\":[\"PHP\"],\"articleSection\":[\"PHP\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/28533\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/28533\",\"name\":\"\u3010PHP\u5165\u9580\u3011array_merge\u3067\u914d\u5217\u3092\u7c21\u5358\u306b\u7d50\u5408\u3059\u308b\u65b9\u6cd5 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/28533#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/28533#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/08\\\/image-310.jpg\",\"datePublished\":\"2017-08-03T09:48:14+00:00\",\"dateModified\":\"2024-05-06T02:44:14+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010PHP\u5165\u9580\u3011array_merge\u3067\u914d\u5217\u3092\u7c21\u5358\u306b\u7d50\u5408\u3059\u308b\u65b9\u6cd5 \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\\\/28533#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/28533\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/28533#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/08\\\/image-310.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/08\\\/image-310.jpg\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/28533#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010PHP\u5165\u9580\u3011array_merge\u3067\u914d\u5217\u3092\u7c21\u5358\u306b\u7d50\u5408\u3059\u308b\u65b9\u6cd5\"}]},{\"@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\u3011array_merge\u3067\u914d\u5217\u3092\u7c21\u5358\u306b\u7d50\u5408\u3059\u308b\u65b9\u6cd5 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010PHP\u5165\u9580\u3011array_merge\u3067\u914d\u5217\u3092\u7c21\u5358\u306b\u7d50\u5408\u3059\u308b\u65b9\u6cd5 \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\/28533","og_locale":"ja_JP","og_type":"article","og_title":"\u3010PHP\u5165\u9580\u3011array_merge\u3067\u914d\u5217\u3092\u7c21\u5358\u306b\u7d50\u5408\u3059\u308b\u65b9\u6cd5 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010PHP\u5165\u9580\u3011array_merge\u3067\u914d\u5217\u3092\u7c21\u5358\u306b\u7d50\u5408\u3059\u308b\u65b9\u6cd5 \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\/28533","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_published_time":"2017-08-03T09:48:14+00:00","article_modified_time":"2024-05-06T02:44:14+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/image-310.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\/28533#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/28533"},"author":{"name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095"},"headline":"\u3010PHP\u5165\u9580\u3011array_merge\u3067\u914d\u5217\u3092\u7c21\u5358\u306b\u7d50\u5408\u3059\u308b\u65b9\u6cd5","datePublished":"2017-08-03T09:48:14+00:00","dateModified":"2024-05-06T02:44:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/28533"},"wordCount":110,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/28533#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/image-310.jpg","keywords":["PHP"],"articleSection":["PHP\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/28533","url":"https:\/\/www.sejuku.net\/blog\/28533","name":"\u3010PHP\u5165\u9580\u3011array_merge\u3067\u914d\u5217\u3092\u7c21\u5358\u306b\u7d50\u5408\u3059\u308b\u65b9\u6cd5 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/28533#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/28533#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/image-310.jpg","datePublished":"2017-08-03T09:48:14+00:00","dateModified":"2024-05-06T02:44:14+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010PHP\u5165\u9580\u3011array_merge\u3067\u914d\u5217\u3092\u7c21\u5358\u306b\u7d50\u5408\u3059\u308b\u65b9\u6cd5 \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\/28533#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/28533"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/28533#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/image-310.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/08\/image-310.jpg","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/28533#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010PHP\u5165\u9580\u3011array_merge\u3067\u914d\u5217\u3092\u7c21\u5358\u306b\u7d50\u5408\u3059\u308b\u65b9\u6cd5"}]},{"@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\/28533","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=28533"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/28533\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/47789"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=28533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=28533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=28533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}