{"id":49711,"date":"2018-09-17T14:40:52","date_gmt":"2018-09-17T08:40:52","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=49711"},"modified":"2018-09-17T14:40:52","modified_gmt":"2018-09-17T08:40:52","slug":"%d0%b7%d0%b0%d0%bc%d0%b5%d0%bd%d0%b0-%d1%8d%d0%bb%d0%b5%d0%bc%d0%b5%d0%bd%d1%82%d0%be%d0%b2-%d0%bc%d0%b0%d1%81%d1%81%d0%b8%d0%b2%d0%b0-%d1%8d%d0%bb%d0%b5%d0%bc%d0%b5%d0%bd%d1%82%d0%b0%d0%bc%d0%b8","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=49711","title":{"rendered":"\u0417\u0430\u043c\u0435\u043d\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430"},"content":{"rendered":"<p>\u0414\u043b\u044f \u0437\u0430\u043c\u0435\u043d\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0438\u043b\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u00a0<strong>array_replace()<\/strong>.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043a\u043b\u044e\u0447 \u0438\u0437 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0435, \u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430. \u0415\u0441\u043b\u0438 \u043a\u043b\u044e\u0447 \u0435\u0441\u0442\u044c \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0435, \u043d\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u043f\u0435\u0440\u0432\u043e\u043c &#8212; \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0435. \u0415\u0441\u043b\u0438 \u043a\u043b\u044e\u0447 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0435, \u0442\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043a\u0430\u043a \u0435\u0441\u0442\u044c. \u0415\u0441\u043b\u0438 \u0434\u043b\u044f \u0437\u0430\u043c\u0435\u043d\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432, \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u044b \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0438 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0437\u0434\u043d\u0438\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0437 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f:<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #0000ff;\">'&lt;pre&gt;'<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$a<\/span> <span style=\"color: #339933;\">=<\/span> <a href=\"http:\/\/www.php.net\/array\"><span style=\"color: #990000;\">array<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #0000ff;\">\"\u043a\u0438\u043d\u043e\"<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #0000ff;\">\"\u043c\u0443\u0437\u044b\u043a\u0430\"<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #0000ff;\">\"\u0442\u0435\u0430\u0442\u0440\"<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #0000ff;\">\"\u0446\u0438\u0440\u043a\"<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #0000ff;\">\"\u0448\u043a\u043e\u043b\u0430\"<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$b<\/span> <span style=\"color: #339933;\">=<\/span> <a href=\"http:\/\/www.php.net\/array\"><span style=\"color: #990000;\">array<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #339933;\">=&gt;<\/span><span style=\"color: #0000ff;\">\"\u0444\u0438\u043b\u044c\u043c\"<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #cc66cc;\">3<\/span><span style=\"color: #339933;\">=&gt;<\/span><span style=\"color: #0000ff;\">\"\u043f\u0435\u0441\u043d\u044f\"<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #cc66cc;\">4<\/span><span style=\"color: #339933;\">=&gt;<\/span><span style=\"color: #0000ff;\">\"\u0433\u0438\u0442\u0430\u0440\u0430\"<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #cc66cc;\">5<\/span><span style=\"color: #339933;\">=&gt;<\/span><span style=\"color: #0000ff;\">\"\u043f\u0430\u0442\u0438\u0444\u043e\u043d\"<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #cc66cc;\">6<\/span><span style=\"color: #339933;\">=&gt;<\/span><span style=\"color: #0000ff;\">\"\u0431\u0430\u0448\u043d\u044f\"<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$c<\/span> <span style=\"color: #339933;\">=<\/span> <a href=\"http:\/\/www.php.net\/array\"><span style=\"color: #990000;\">array<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #cc66cc;\">3<\/span><span style=\"color: #339933;\">=&gt;<\/span><span style=\"color: #0000ff;\">\"23\"<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #0000ff;\">\"80\"<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #0000ff;\">\"999\"<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #cc66cc;\">6<\/span><span style=\"color: #339933;\">=&gt;<\/span><span style=\"color: #0000ff;\">\"\u0442\u0440\u0430\u043d\u0437\u0438\u0441\u0442\u043e\u0440\"<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #0000ff;\">\"\u0434\u0438\u043e\u0434\"<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$arr<\/span> <span style=\"color: #339933;\">=<\/span> array_replace<span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$a<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #000088;\">$b<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #000088;\">$c<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<a href=\"http:\/\/www.php.net\/print_r\"><span style=\"color: #990000;\">print_r<\/span><\/a> <span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$arr<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #0000ff;\">'&lt;\/pre&gt;'<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<pre>Array\r\n(\r\n    [0] =&gt; \u0444\u0438\u043b\u044c\u043c\r\n    [1] =&gt; \u043c\u0443\u0437\u044b\u043a\u0430\r\n    [2] =&gt; \u0442\u0435\u0430\u0442\u0440\r\n    [3] =&gt; 23\r\n    [4] =&gt; 80\r\n    [5] =&gt; 999\r\n    [6] =&gt; \u0442\u0440\u0430\u043d\u0437\u0438\u0441\u0442\u043e\u0440\r\n    [7] =&gt; \u0434\u0438\u043e\u0434\r\n)<\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0430\u043c \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043e\u0434\u0438\u043d \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043d\u043e\u043c\u0435\u0440 \u043a\u043b\u044e\u0447\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0430\u043c \u043d\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0435\u0433\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u043d\u0430\u044f \u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435:<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #0000ff;\">'&lt;pre&gt;'<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$a<\/span> <span style=\"color: #339933;\">=<\/span> <a href=\"http:\/\/www.php.net\/array\"><span style=\"color: #990000;\">array<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #0000ff;\">\"\u043a\u0438\u043d\u043e\"<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #0000ff;\">\"\u043c\u0443\u0437\u044b\u043a\u0430\"<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #0000ff;\">\"\u0442\u0435\u0430\u0442\u0440\"<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #0000ff;\">\"\u0446\u0438\u0440\u043a\"<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #0000ff;\">\"\u0448\u043a\u043e\u043b\u0430\"<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$key<\/span> <span style=\"color: #339933;\">=<\/span> <a href=\"http:\/\/www.php.net\/array_search\"><span style=\"color: #990000;\">array_search<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #0000ff;\">\"\u0442\u0435\u0430\u0442\u0440\"<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #000088;\">$a<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span> <span style=\"color: #666666; font-style: italic;\">\/\/ \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u0438 \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c \u0435\u0433\u043e \u043a\u043b\u044e\u0447<\/span>\r\n<span style=\"color: #000088;\">$b<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #000088;\">$key<\/span><span style=\"color: #009900;\">]<\/span> <span style=\"color: #339933;\">=<\/span> <span style=\"color: #0000ff;\">\"STOP\"<\/span><span style=\"color: #339933;\">;<\/span> <span style=\"color: #666666; font-style: italic;\">\/\/ \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u043c \u043a\u043b\u044e\u0447 \u043d\u043e\u0432\u043e\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e <\/span>\r\n<span style=\"color: #000088;\">$arr<\/span> <span style=\"color: #339933;\">=<\/span> array_replace<span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$a<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #009900;\">(<\/span><a href=\"http:\/\/www.php.net\/array\"><span style=\"color: #990000;\">array<\/span><\/a><span style=\"color: #009900;\">)<\/span><span style=\"color: #000088;\">$b<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span> <span style=\"color: #666666; font-style: italic;\">\/\/ \u0437\u0430\u043c\u0435\u043d\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043d\u043e\u0432\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c<\/span>\r\n<a href=\"http:\/\/www.php.net\/print_r\"><span style=\"color: #990000;\">print_r<\/span><\/a> <span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$arr<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #0000ff;\">'&lt;\/pre&gt;'<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<pre>Array\r\n(\r\n    [0] =&gt; \u043a\u0438\u043d\u043e\r\n    [1] =&gt; \u043c\u0443\u0437\u044b\u043a\u0430\r\n    [2] =&gt; STOP\r\n    [3] =&gt; \u0446\u0438\u0440\u043a\r\n    [4] =&gt; \u0448\u043a\u043e\u043b\u0430\r\n)<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u0437\u0430\u043c\u0435\u043d\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0438\u043b\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u00a0array_replace(). \u0415\u0441\u043b\u0438 \u043a\u043b\u044e\u0447 \u0438\u0437 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0435, \u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430. \u0415\u0441\u043b\u0438 \u043a\u043b\u044e\u0447 \u0435\u0441\u0442\u044c \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0435, \u043d\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u043f\u0435\u0440\u0432\u043e\u043c &#8212; \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0435. \u0415\u0441\u043b\u0438 \u043a\u043b\u044e\u0447 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0435, \u0442\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":49675,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[183],"tags":[],"class_list":["post-49711","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"views":2231,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/49711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=49711"}],"version-history":[{"count":1,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/49711\/revisions"}],"predecessor-version":[{"id":49712,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/49711\/revisions\/49712"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/49675"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=49711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=49711"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=49711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}