{"id":7357,"date":"2016-12-05T02:05:41","date_gmt":"2016-12-05T10:05:41","guid":{"rendered":"http:\/\/www.slyar.com\/blog\/?p=7357"},"modified":"2017-08-05T02:15:24","modified_gmt":"2017-08-05T09:15:24","slug":"php-array-merge-bug","status":"publish","type":"post","link":"http:\/\/www.slyar.com\/blog\/php-array-merge-bug.html","title":{"rendered":"php: array_merge \u51fd\u6570\u5f15\u53d1\u7684\u8840\u6848"},"content":{"rendered":"<p>\u6587\u7ae0\u4f5c\u8005\uff1a<span style=\"color: #0000ff;\">\u59dc\u5357(Slyar) <\/span>\u6587\u7ae0\u6765\u6e90\uff1aSlyar Home (<a title=\"\u5927S\u535a\u5ba2\" href=\"http:\/\/www.slyar.com\" target=\"_blank\">www.slyar.com<\/a>) \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff0c\u8c22\u8c22\u5408\u4f5c\u3002<\/p>\n<p>\u4eca\u5929\u5904\u7406\u4e00\u4e2a\u4e8b\u6545\u7684\u65f6\u5019\u53d1\u73b0\u4e00\u4e2abug\uff0c\u67d0\u4e2a\u7a0b\u5e8f\u5458\u770b\u6765\u662f\u6ca1\u6709\u5f04\u61c2array_merge\uff0c\u628a\u5b83\u5f53\u6210\u4e00\u822c\u7684\u6570\u7ec4\u5408\u5e76\u6765\u7528\u4e86<\/p>\n<p>\u5148\u770b\u4e24\u6bb5\u4ee3\u7801\uff1a<\/p>\n<pre class=\"lang:php decode:true \" >$array1 = array(\"slyar\"=&gt;00000, \"com\"=&gt;00000);\r\n$array2 = array(\"slyar\"=&gt;11111, \"com\"=&gt;11111);\r\n \r\n$array3 = array_merge($array1, $array2);\r\nvar_dump($array3);<\/pre>\n<p>\u7ed3\u679c\uff1a array(2) { [\"slyar\"]=> int(11111) [\"com\"]=> int(11111) }<\/p>\n<p>\u8fd9\u4e2afeature\u5f88\u591a\u7a0b\u5e8f\u5458\u5e94\u8be5\u662f\u77e5\u9053\u7684\uff0c\u5982\u679c\u6709\u76f8\u540c\u7684<strong>string<\/strong> key\u90a3\u4e48\u540e\u9762\u7684\u6570\u7ec4value\u4f1a\u8986\u76d6\u524d\u9762\u7684\uff0c\u5f88\u597d\u7528\u7684\u4e00\u4e2a\u7279\u6027<\/p>\n<pre class=\"lang:php decode:true \" >\r\n$array1 = array(\"111\"=>0000, \"slyar\"=>1111, \"555\"=>5555);\r\n$array2 = array(\"com\"=>9999, \"222\"=>2222, \"333\"=>3333);\r\n \r\n$array3 = array_merge($array1, $array2);\r\nvar_dump($array3);\r\n<\/pre>\n<p>\u7ed3\u679c\uff1a array(6) { [0]=> int(0) [\"slyar\"]=> int(1111) [1]=> int(5555) [\"com\"]=> int(9999) [2]=> int(2222) [3]=> int(3333) }<\/p>\n<p>\u610f\u4e0d\u610f\u5916\uff0c\u60ca\u4e0d\u60ca\u559c\uff1f\u8fd9\u4e2a\u5c31\u662f\u4eca\u5929bug\u7684\u6839\u6e90\u4e86\uff0c\u5f53key\u662f<strong>\u7eaf\u6570\u5b57<\/strong>\u7684\u65f6\u5019\uff0carray_merge\u4f1a\u628akey\u91cd\u65b0\u4ece0\u5f00\u59cb\u7d22\u5f15\u5e76\u6539\u53d8key\u7684\u503c\u3002\u3002\u3002\u4e8e\u662f\u90a3\u4e9b\u4ee5\u7eaf\u6570\u5b57\u4f5c\u4e3akey\u7684\u952e\u503c\u5bf9\u5c31\u8fd9\u4e48\u3002\u3002\u3002\u6d88\u5931\u4e86\u3002\u3002\u3002<\/p>\n<p>\u4f7f\u7528\u4e0d\u719f\u6089\u7684\u51fd\u6570\u65f6\u4e00\u5b9a\u8981\u591a\u8bfb\u6587\u6863\u554a\u3002\u3002\u3002<\/p>\n<p>\u5b98\u65b9\u6587\u6863\uff1a<\/p>\n<p>Description (<a href=\"http:\/\/php.net\/manual\/en\/function.array-merge.php\" target=\"_blank\">http:\/\/php.net\/manual\/en\/function.array-merge.php<\/a>)<\/p>\n<pre class=\"lang:php decode:true \" >array array_merge ( array $array1 [, array $... ] )<\/pre>\n<p>Merges the elements of one or more arrays together so that the values of one are appended to the end of the previous one. It returns the resulting array.<\/p>\n<p>If the input arrays have the same string keys, then the later value for that key will overwrite the previous one. If, however, the arrays contain numeric keys, the later value will not overwrite the original value, but will be appended.<\/p>\n<p>Values in the input array with numeric keys will be renumbered with incrementing keys starting from zero in the result array.<\/p>\n<p><a href=\"http:\/\/www.slyar.com\/blog\/wp-content\/uploads\/2016\/12\/PHP_is_the_best.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.slyar.com\/blog\/wp-content\/uploads\/2016\/12\/PHP_is_the_best.png\" alt=\"PHP_is_the_best\" width=\"600\" height=\"322\" class=\"alignnone size-full wp-image-7363\" srcset=\"http:\/\/www.slyar.com\/blog\/wp-content\/uploads\/2016\/12\/PHP_is_the_best.png 600w, http:\/\/www.slyar.com\/blog\/wp-content\/uploads\/2016\/12\/PHP_is_the_best-150x81.png 150w, http:\/\/www.slyar.com\/blog\/wp-content\/uploads\/2016\/12\/PHP_is_the_best-300x161.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>\u56fe by \u897f\u4e54<\/p>\n<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1a<a href=\"http:\/\/www.slyar.com\/blog\">Slyar Home<\/a> &raquo; <a href=\"http:\/\/www.slyar.com\/blog\/php-array-merge-bug.html\">php: array_merge \u51fd\u6570\u5f15\u53d1\u7684\u8840\u6848<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u4f5c\u8005\uff1a\u59dc\u5357(Slyar) \u6587\u7ae0\u6765\u6e90\uff1aSlyar Home (www.slyar.com) \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff0c\u8c22\u8c22\u5408\u4f5c\u3002 \u4eca\u5929\u5904\u7406\u4e00\u4e2a\u4e8b\u6545\u7684\u65f6\u5019\u53d1\u73b0\u4e00\u4e2abug\uff0c\u67d0\u4e2a\u7a0b\u5e8f\u5458\u770b\u6765\u662f\u6ca1\u6709\u5f04\u61c2array_merge\uff0c\u628a\u5b83\u5f53\u6210\u4e00\u822c\u7684\u6570\u7ec4\u5408\u5e76\u6765\u7528\u4e86 \u5148\u770b\u4e24\u6bb5\u4ee3\u7801\uff1a  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[979],"class_list":["post-7357","post","type-post","status-publish","format-standard","hentry","category-programing","tag-php"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"php\u51fd\u6570array_merge\uff0c \u5f53key\u662f\u7eaf\u6570\u5b57\u7684\u65f6\u5019\uff0carray_merge\u4f1a\u628akey\u91cd\u65b0\u4ece0\u5f00\u59cb\u7d22\u5f15\u5e76\u6539\u53d8key\u7684\u503c\u3002\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Slyar\"\/>\n\t<meta name=\"keywords\" content=\"slyar,php,bug,\u51fd\u6570,\u6570\u7ec4,\u6570\u5b57,\u7d22\u5f15,\u5408\u5e76\" \/>\n\t<link rel=\"canonical\" href=\"http:\/\/www.slyar.com\/blog\/php-array-merge-bug.html\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"zh_CN\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Slyar Home | \u8bb0\u5f55\u4e2a\u4eba\u751f\u6d3b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"php: array_merge \u51fd\u6570\u5f15\u53d1\u7684\u8840\u6848 - Slyar Home\" \/>\n\t\t<meta property=\"og:description\" content=\"php\u51fd\u6570array_merge\uff0c \u5f53key\u662f\u7eaf\u6570\u5b57\u7684\u65f6\u5019\uff0carray_merge\u4f1a\u628akey\u91cd\u65b0\u4ece0\u5f00\u59cb\u7d22\u5f15\u5e76\u6539\u53d8key\u7684\u503c\u3002\" \/>\n\t\t<meta property=\"og:url\" content=\"http:\/\/www.slyar.com\/blog\/php-array-merge-bug.html\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2016-12-05T10:05:41+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2017-08-05T09:15:24+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"php: array_merge \u51fd\u6570\u5f15\u53d1\u7684\u8840\u6848 - Slyar Home\" \/>\n\t\t<meta name=\"twitter:description\" content=\"php\u51fd\u6570array_merge\uff0c \u5f53key\u662f\u7eaf\u6570\u5b57\u7684\u65f6\u5019\uff0carray_merge\u4f1a\u628akey\u91cd\u65b0\u4ece0\u5f00\u59cb\u7d22\u5f15\u5e76\u6539\u53d8key\u7684\u503c\u3002\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php-array-merge-bug.html#article\",\"name\":\"php: array_merge \\u51fd\\u6570\\u5f15\\u53d1\\u7684\\u8840\\u6848 - Slyar Home\",\"headline\":\"php: array_merge \\u51fd\\u6570\\u5f15\\u53d1\\u7684\\u8840\\u6848\",\"author\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\"},\"publisher\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/PHP_is_the_best.png\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php-array-merge-bug.html\\\/#articleImage\",\"width\":600,\"height\":322},\"datePublished\":\"2016-12-05T02:05:41-08:00\",\"dateModified\":\"2017-08-05T02:15:24-07:00\",\"inLanguage\":\"zh-CN\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php-array-merge-bug.html#webpage\"},\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php-array-merge-bug.html#webpage\"},\"articleSection\":\"\\u7f16\\u7a0b\\u76f8\\u5173, php\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php-array-merge-bug.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/programing#listItem\",\"name\":\"\\u7f16\\u7a0b\\u76f8\\u5173\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/programing#listItem\",\"position\":2,\"name\":\"\\u7f16\\u7a0b\\u76f8\\u5173\",\"item\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/programing\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php-array-merge-bug.html#listItem\",\"name\":\"php: array_merge \\u51fd\\u6570\\u5f15\\u53d1\\u7684\\u8840\\u6848\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php-array-merge-bug.html#listItem\",\"position\":3,\"name\":\"php: array_merge \\u51fd\\u6570\\u5f15\\u53d1\\u7684\\u8840\\u6848\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/programing#listItem\",\"name\":\"\\u7f16\\u7a0b\\u76f8\\u5173\"}}]},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#person\",\"name\":\"Slyar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php-array-merge-bug.html#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid\",\"width\":96,\"height\":96,\"caption\":\"Slyar\"}},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar\",\"name\":\"Slyar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php-array-merge-bug.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid\",\"width\":96,\"height\":96,\"caption\":\"Slyar\"}},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php-array-merge-bug.html#webpage\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php-array-merge-bug.html\",\"name\":\"php: array_merge \\u51fd\\u6570\\u5f15\\u53d1\\u7684\\u8840\\u6848 - Slyar Home\",\"description\":\"php\\u51fd\\u6570array_merge\\uff0c \\u5f53key\\u662f\\u7eaf\\u6570\\u5b57\\u7684\\u65f6\\u5019\\uff0carray_merge\\u4f1a\\u628akey\\u91cd\\u65b0\\u4ece0\\u5f00\\u59cb\\u7d22\\u5f15\\u5e76\\u6539\\u53d8key\\u7684\\u503c\\u3002\",\"inLanguage\":\"zh-CN\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php-array-merge-bug.html#breadcrumblist\"},\"author\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\"},\"creator\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\"},\"datePublished\":\"2016-12-05T02:05:41-08:00\",\"dateModified\":\"2017-08-05T02:15:24-07:00\"},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#website\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/\",\"name\":\"Slyar Home\",\"description\":\"\\u8bb0\\u5f55\\u4e2a\\u4eba\\u751f\\u6d3b\",\"inLanguage\":\"zh-CN\",\"publisher\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"php: array_merge \u51fd\u6570\u5f15\u53d1\u7684\u8840\u6848 - Slyar Home","description":"php\u51fd\u6570array_merge\uff0c \u5f53key\u662f\u7eaf\u6570\u5b57\u7684\u65f6\u5019\uff0carray_merge\u4f1a\u628akey\u91cd\u65b0\u4ece0\u5f00\u59cb\u7d22\u5f15\u5e76\u6539\u53d8key\u7684\u503c\u3002","canonical_url":"http:\/\/www.slyar.com\/blog\/php-array-merge-bug.html","robots":"max-image-preview:large","keywords":"slyar,php,bug,\u51fd\u6570,\u6570\u7ec4,\u6570\u5b57,\u7d22\u5f15,\u5408\u5e76","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.slyar.com\/blog\/php-array-merge-bug.html#article","name":"php: array_merge \u51fd\u6570\u5f15\u53d1\u7684\u8840\u6848 - Slyar Home","headline":"php: array_merge \u51fd\u6570\u5f15\u53d1\u7684\u8840\u6848","author":{"@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author"},"publisher":{"@id":"http:\/\/www.slyar.com\/blog\/#person"},"image":{"@type":"ImageObject","url":"http:\/\/www.slyar.com\/blog\/wp-content\/uploads\/2016\/12\/PHP_is_the_best.png","@id":"http:\/\/www.slyar.com\/blog\/php-array-merge-bug.html\/#articleImage","width":600,"height":322},"datePublished":"2016-12-05T02:05:41-08:00","dateModified":"2017-08-05T02:15:24-07:00","inLanguage":"zh-CN","commentCount":1,"mainEntityOfPage":{"@id":"http:\/\/www.slyar.com\/blog\/php-array-merge-bug.html#webpage"},"isPartOf":{"@id":"http:\/\/www.slyar.com\/blog\/php-array-merge-bug.html#webpage"},"articleSection":"\u7f16\u7a0b\u76f8\u5173, php"},{"@type":"BreadcrumbList","@id":"http:\/\/www.slyar.com\/blog\/php-array-merge-bug.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/#listItem","position":1,"name":"Home","item":"http:\/\/www.slyar.com\/blog\/","nextItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/category\/programing#listItem","name":"\u7f16\u7a0b\u76f8\u5173"}},{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/category\/programing#listItem","position":2,"name":"\u7f16\u7a0b\u76f8\u5173","item":"http:\/\/www.slyar.com\/blog\/category\/programing","nextItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/php-array-merge-bug.html#listItem","name":"php: array_merge \u51fd\u6570\u5f15\u53d1\u7684\u8840\u6848"},"previousItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/php-array-merge-bug.html#listItem","position":3,"name":"php: array_merge \u51fd\u6570\u5f15\u53d1\u7684\u8840\u6848","previousItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/category\/programing#listItem","name":"\u7f16\u7a0b\u76f8\u5173"}}]},{"@type":"Person","@id":"http:\/\/www.slyar.com\/blog\/#person","name":"Slyar","image":{"@type":"ImageObject","@id":"http:\/\/www.slyar.com\/blog\/php-array-merge-bug.html#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid","width":96,"height":96,"caption":"Slyar"}},{"@type":"Person","@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author","url":"http:\/\/www.slyar.com\/blog\/author\/slyar","name":"Slyar","image":{"@type":"ImageObject","@id":"http:\/\/www.slyar.com\/blog\/php-array-merge-bug.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid","width":96,"height":96,"caption":"Slyar"}},{"@type":"WebPage","@id":"http:\/\/www.slyar.com\/blog\/php-array-merge-bug.html#webpage","url":"http:\/\/www.slyar.com\/blog\/php-array-merge-bug.html","name":"php: array_merge \u51fd\u6570\u5f15\u53d1\u7684\u8840\u6848 - Slyar Home","description":"php\u51fd\u6570array_merge\uff0c \u5f53key\u662f\u7eaf\u6570\u5b57\u7684\u65f6\u5019\uff0carray_merge\u4f1a\u628akey\u91cd\u65b0\u4ece0\u5f00\u59cb\u7d22\u5f15\u5e76\u6539\u53d8key\u7684\u503c\u3002","inLanguage":"zh-CN","isPartOf":{"@id":"http:\/\/www.slyar.com\/blog\/#website"},"breadcrumb":{"@id":"http:\/\/www.slyar.com\/blog\/php-array-merge-bug.html#breadcrumblist"},"author":{"@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author"},"creator":{"@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author"},"datePublished":"2016-12-05T02:05:41-08:00","dateModified":"2017-08-05T02:15:24-07:00"},{"@type":"WebSite","@id":"http:\/\/www.slyar.com\/blog\/#website","url":"http:\/\/www.slyar.com\/blog\/","name":"Slyar Home","description":"\u8bb0\u5f55\u4e2a\u4eba\u751f\u6d3b","inLanguage":"zh-CN","publisher":{"@id":"http:\/\/www.slyar.com\/blog\/#person"}}]},"og:locale":"zh_CN","og:site_name":"Slyar Home | \u8bb0\u5f55\u4e2a\u4eba\u751f\u6d3b","og:type":"article","og:title":"php: array_merge \u51fd\u6570\u5f15\u53d1\u7684\u8840\u6848 - Slyar Home","og:description":"php\u51fd\u6570array_merge\uff0c \u5f53key\u662f\u7eaf\u6570\u5b57\u7684\u65f6\u5019\uff0carray_merge\u4f1a\u628akey\u91cd\u65b0\u4ece0\u5f00\u59cb\u7d22\u5f15\u5e76\u6539\u53d8key\u7684\u503c\u3002","og:url":"http:\/\/www.slyar.com\/blog\/php-array-merge-bug.html","article:published_time":"2016-12-05T10:05:41+00:00","article:modified_time":"2017-08-05T09:15:24+00:00","twitter:card":"summary","twitter:title":"php: array_merge \u51fd\u6570\u5f15\u53d1\u7684\u8840\u6848 - Slyar Home","twitter:description":"php\u51fd\u6570array_merge\uff0c \u5f53key\u662f\u7eaf\u6570\u5b57\u7684\u65f6\u5019\uff0carray_merge\u4f1a\u628akey\u91cd\u65b0\u4ece0\u5f00\u59cb\u7d22\u5f15\u5e76\u6539\u53d8key\u7684\u503c\u3002"},"aioseo_meta_data":{"post_id":"7357","title":"php: array_merge \u51fd\u6570\u5f15\u53d1\u7684\u8840\u6848 - #site_title","description":"php\u51fd\u6570array_merge\uff0c \u5f53key\u662f\u7eaf\u6570\u5b57\u7684\u65f6\u5019\uff0carray_merge\u4f1a\u628akey\u91cd\u65b0\u4ece0\u5f00\u59cb\u7d22\u5f15\u5e76\u6539\u53d8key\u7684\u503c\u3002","keywords":[{"label":"slyar","value":"slyar"},{"label":"php","value":"php"},{"label":"bug","value":"bug"},{"label":"\u51fd\u6570","value":"\u51fd\u6570"},{"label":"\u6570\u7ec4","value":"\u6570\u7ec4"},{"label":"\u6570\u5b57","value":"\u6570\u5b57"},{"label":"\u7d22\u5f15","value":"\u7d22\u5f15"},{"label":"\u5408\u5e76","value":"\u5408\u5e76"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-02-10 02:44:07","updated":"2022-10-18 12:59:31","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"_links":{"self":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts\/7357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/comments?post=7357"}],"version-history":[{"count":1,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts\/7357\/revisions"}],"predecessor-version":[{"id":7364,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts\/7357\/revisions\/7364"}],"wp:attachment":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/media?parent=7357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/categories?post=7357"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/tags?post=7357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}