{"id":49689,"date":"2018-09-17T09:14:53","date_gmt":"2018-09-17T03:14:53","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=49689"},"modified":"2018-09-17T09:14:53","modified_gmt":"2018-09-17T03:14:53","slug":"%d1%83%d0%b4%d0%b0%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-%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","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=49689","title":{"rendered":"\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0430"},"content":{"rendered":"<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043a\u0430\u043a \u043f\u043e \u043a\u043b\u044e\u0447\u0443, \u0442\u0430\u043a \u0438 \u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e.<\/p>\n<p>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e:<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><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: #0000ff;\">'zip'<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000ff;\">'7z'<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000ff;\">'rar'<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000ff;\">'tar'<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000ff;\">'taz'<\/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;\">$b<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #0000ff;\">\"&lt;br&gt;\"<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$x<\/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;\">'7z'<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #000088;\">$b<\/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 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435<\/span>\r\n<a href=\"http:\/\/www.php.net\/unset\"><span style=\"color: #990000;\">unset<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$b<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #000088;\">$x<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span> <span style=\"color: #666666; font-style: italic;\">\/\/ \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/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;\">$b<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<p>\u0414\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0435\u0433\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 (\u0444\u0443\u043d\u043a\u0446\u0438\u044f\u00a0<strong>array_search<\/strong>), \u0430 \u0437\u0430\u0442\u0435\u043c \u0435\u0433\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c (\u0444\u0443\u043d\u043a\u0446\u0438\u044f\u00a0<strong>unset<\/strong>).<\/p>\n<blockquote><p>Array ( [0] =&gt; zip [1] =&gt; 7z [2] =&gt; rar [3] =&gt; tar [4] =&gt; taz )<br \/>\nArray ( [0] =&gt; zip [2] =&gt; rar [3] =&gt; tar [4] =&gt; taz )<\/p><\/blockquote>\n<p>\u0414\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043f\u043e \u043a\u043b\u044e\u0447\u0443, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u043e\u043c\u0435\u0440 \u043a\u043b\u044e\u0447\u0430:<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><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: #0000ff;\">'zip'<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000ff;\">'7z'<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000ff;\">'rar'<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000ff;\">'tar'<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000ff;\">'taz'<\/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;\">$b<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #0000ff;\">\"&lt;br&gt;\"<\/span><span style=\"color: #339933;\">;<\/span>\r\n<a href=\"http:\/\/www.php.net\/unset\"><span style=\"color: #990000;\">unset<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$b<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #cc66cc;\">3<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span> <span style=\"color: #666666; font-style: italic;\">\/\/ \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/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;\">$b<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<div class=\"text\">\n<blockquote><p>Array ( [0] =&gt; zip [1] =&gt; 7z [2] =&gt; rar [3] =&gt; tar [4] =&gt; taz )<br \/>\nArray ( [0] =&gt; zip [1] =&gt; 7z [2] =&gt; rar [4] =&gt; taz )<\/p><\/blockquote>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043a\u0430\u043a \u043f\u043e \u043a\u043b\u044e\u0447\u0443, \u0442\u0430\u043a \u0438 \u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e. \u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e: $b = array(&#8216;zip&#8217;,&#8217;7z&#8217;,&#8217;rar&#8217;,&#8217;tar&#8217;,&#8217;taz&#8217;); print_r ($b); echo &#171;&lt;br&gt;&#187;; $x = array_search(&#8216;7z&#8217;, $b); \/\/ \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 unset($b[$x]); \/\/ \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 print_r ($b); \u0414\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0435\u0433\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 [&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-49689","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"views":1983,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/49689","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=49689"}],"version-history":[{"count":1,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/49689\/revisions"}],"predecessor-version":[{"id":49690,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/49689\/revisions\/49690"}],"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=49689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=49689"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=49689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}