{"id":49709,"date":"2018-09-17T14:22:58","date_gmt":"2018-09-17T08:22:58","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=49709"},"modified":"2018-09-17T14:22:58","modified_gmt":"2018-09-17T08:22:58","slug":"%d0%b2%d1%8b%d0%b1%d0%b8%d1%80%d0%b0%d0%b5%d0%bc-%d1%81%d0%bb%d1%83%d1%87%d0%b0%d0%b9%d0%bd%d1%8b%d0%b5-%d1%8d%d0%bb%d0%b5%d0%bc%d0%b5%d0%bd%d1%82%d1%8b-%d0%b8%d0%b7-%d0%bc%d0%b0%d1%81%d1%81%d0%b8","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=49709","title":{"rendered":"\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430"},"content":{"rendered":"<p>\u0414\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u00a0<strong>array_rand()<\/strong>.<\/p>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f\u00a0\u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u043e\u0434\u043d\u043e \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043b\u044e\u0447 (\u0438\u043b\u0438 \u043a\u043b\u044e\u0447\u0438) \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430:<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><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_rand\"><span style=\"color: #990000;\">array_rand<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$a<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$a<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #000088;\">$key<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<blockquote><p>\u0446\u0438\u0440\u043a<\/p><\/blockquote>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u0434\u0432\u0443\u0445 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432:<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><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_rand\"><span style=\"color: #990000;\">array_rand<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$a<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #cc66cc;\">2<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$a<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #000088;\">$key<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #009900;\">]<\/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: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$a<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #000088;\">$key<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<blockquote><p>\u043c\u0443\u0437\u044b\u043a\u0430<br \/>\n\u0446\u0438\u0440\u043a<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u00a0array_rand(). \u0424\u0443\u043d\u043a\u0446\u0438\u044f\u00a0\u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u043e\u0434\u043d\u043e \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043b\u044e\u0447 (\u0438\u043b\u0438 \u043a\u043b\u044e\u0447\u0438) \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430: $a = array(&#171;\u043a\u0438\u043d\u043e&#187;, &#171;\u043c\u0443\u0437\u044b\u043a\u0430&#187;, &#171;\u0442\u0435\u0430\u0442\u0440&#187;, &#171;\u0446\u0438\u0440\u043a&#187;, &#171;\u0448\u043a\u043e\u043b\u0430&#187;); $key = array_rand($a); echo $a[$key]; \u0446\u0438\u0440\u043a \u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u0434\u0432\u0443\u0445 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432: $a = array(&#171;\u043a\u0438\u043d\u043e&#187;, &#171;\u043c\u0443\u0437\u044b\u043a\u0430&#187;, &#171;\u0442\u0435\u0430\u0442\u0440&#187;, [&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-49709","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"views":1501,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/49709","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=49709"}],"version-history":[{"count":1,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/49709\/revisions"}],"predecessor-version":[{"id":49710,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/49709\/revisions\/49710"}],"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=49709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=49709"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=49709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}