{"id":305,"date":"2017-12-18T09:08:33","date_gmt":"2017-12-18T06:08:33","guid":{"rendered":"http:\/\/huskynet.ru\/0902-16\/?p=305"},"modified":"2020-09-09T12:13:11","modified_gmt":"2020-09-09T09:13:11","slug":"%d1%83%d0%bf%d1%80%d0%b0%d0%b6%d0%bd%d0%b5%d0%bd%d0%b8%d1%8f-%d1%81-%d0%bc%d0%b0%d1%81%d1%81%d0%b8%d0%b2%d0%b0%d0%bc%d0%b8","status":"publish","type":"post","link":"https:\/\/huskynet.ru\/lms\/%d1%83%d0%bf%d1%80%d0%b0%d0%b6%d0%bd%d0%b5%d0%bd%d0%b8%d1%8f-%d1%81-%d0%bc%d0%b0%d1%81%d1%81%d0%b8%d0%b2%d0%b0%d0%bc%d0%b8\/","title":{"rendered":"\u0423\u043f\u0440\u0430\u0436\u043d\u0435\u043d\u0438\u044f \u0441 \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u043c\u0438"},"content":{"rendered":"<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u21161. \u0424\u0430\u0439\u043b <em>php<strong>\/mas_1.php<\/strong><\/em><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\">&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;\u0420\u0430\u0437\u043c\u0435\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;?php\r\n$\u0444\u0440\u0443\u043a\u0442\u044b = array(\"\u044f\u0431\u043b\u043e\u043a\u043e\", \"\u0433\u0440\u0443\u0448\u0430\", \"\u0441\u043b\u0438\u0432\u0430\", \"\u043f\u0435\u0440\u0441\u0438\u043a\");\r\necho \"\u0420\u0430\u0437\u043c\u0435\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \\$\u0444\u0440\u0443\u043a\u0442\u044b \u0440\u0430\u0432\u0435\u043d \".count($\u0444\u0440\u0443\u043a\u0442\u044b).\"&lt;br&gt;\";\r\necho \"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \\$\u0444\u0440\u0443\u043a\u0442\u044b - \".$\u0444\u0440\u0443\u043a\u0442\u044b[count($\u0444\u0440\u0443\u043a\u0442\u044b)-1].\"&lt;br&gt;\";\r\n?&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p><em>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/em><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">\u0420\u0430\u0437\u043c\u0435\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 $\u0444\u0440\u0443\u043a\u0442\u044b \u0440\u0430\u0432\u0435\u043d 4 \r\n\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 $\u0444\u0440\u0443\u043a\u0442\u044b - \u043f\u0435\u0440\u0441\u0438\u043a<\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u21162. \u0424\u0430\u0439\u043b <em>php<strong>\/mas_2.php<\/strong><\/em><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\">&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;\u0420\u0430\u0437\u043c\u0435\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;?php\r\n$\u0444\u0440\u0443\u043a\u0442\u044b = array(\"\u044f\u0431\u043b\u043e\u043a\u043e\", \"\u0433\u0440\u0443\u0448\u0430\", \"\u0441\u043b\u0438\u0432\u0430\", \"\u043f\u0435\u0440\u0441\u0438\u043a\", \"\u0433\u0440\u0443\u0448\u0430\");\r\nprint_r (array_count_values($\u0444\u0440\u0443\u043a\u0442\u044b));\r\n?&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p><em>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/em><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Array ( [\u044f\u0431\u043b\u043e\u043a\u043e] =&gt; 1 [\u0433\u0440\u0443\u0448\u0430] =&gt; 2 [\u0441\u043b\u0438\u0432\u0430] =&gt; 1 [\u043f\u0435\u0440\u0441\u0438\u043a] =&gt; 1 )<\/pre>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f <b>print_r()<\/b> \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u043a\u043b\u044e\u0447\u0438 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0432 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0435.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u21163. \u0424\u0430\u0439\u043b <em>php<strong>\/mas_3.php<\/strong><\/em><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\">&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;?php\r\n$\u0444\u0440\u0443\u043a\u0442\u044b = array(\"\u044f\u0431\u043b\u043e\u043a\u043e\", \"\u0433\u0440\u0443\u0448\u0430\", \"\u0441\u043b\u0438\u0432\u0430\", \"\u043f\u0435\u0440\u0441\u0438\u043a\", \"\u0433\u0440\u0443\u0448\u0430\");\r\nforeach ($\u0444\u0440\u0443\u043a\u0442\u044b as $\u0444\u0440\u0443\u043a\u0442)\r\n  {\r\n  echo  \"$\u0444\u0440\u0443\u043a\u0442&lt;br&gt;\";\r\n  }\r\n?&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p><em>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/em><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\">\u044f\u0431\u043b\u043e\u043a\u043e \r\n\u0433\u0440\u0443\u0448\u0430 \r\n\u0441\u043b\u0438\u0432\u0430 \r\n\u043f\u0435\u0440\u0441\u0438\u043a \r\n\u0433\u0440\u0443\u0448\u0430<\/pre>\n<p>&nbsp;<\/p>\n<div class=\"rcl-rating-box rating-type-post box-like\"><div class=\"rating-wrapper\"><span class=\"vote-heart\"><i class=\"rcli fa-heartbeat\" aria-hidden=\"true\"><\/i><\/span><span class=\"rating-value\"><span class=\"rating-null\">0<\/span><\/span><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u21161. \u0424\u0430\u0439\u043b php\/mas_1.php &lt;html&gt; &lt;head&gt; &lt;title&gt;\u0420\u0430\u0437\u043c\u0435\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430&lt;\/title&gt; &lt;\/head&gt; &lt;body&gt; &lt;?php $\u0444\u0440\u0443\u043a\u0442\u044b = array(&#171;\u044f\u0431\u043b\u043e\u043a\u043e&#187;, &#171;\u0433\u0440\u0443\u0448\u0430&#187;, &#171;\u0441\u043b\u0438\u0432\u0430&#187;, &#171;\u043f\u0435\u0440\u0441\u0438\u043a&#187;); echo &#171;\u0420\u0430\u0437\u043c\u0435\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \\$\u0444\u0440\u0443\u043a\u0442\u044b \u0440\u0430\u0432\u0435\u043d &#171;.count($\u0444\u0440\u0443\u043a\u0442\u044b).&#187;&lt;br&gt;&#187;; echo &#171;\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \\$\u0444\u0440\u0443\u043a\u0442\u044b &#8212; &#171;.$\u0444\u0440\u0443\u043a\u0442\u044b[count($\u0444\u0440\u0443\u043a\u0442\u044b)-1].&#187;&lt;br&gt;&#187;; ?&gt; &lt;\/body&gt; &lt;\/html&gt; \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0420\u0430\u0437\u043c\u0435\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 $\u0444\u0440\u0443\u043a\u0442\u044b \u0440\u0430\u0432\u0435\u043d 4 \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 $\u0444\u0440\u0443\u043a\u0442\u044b &#8212; \u043f\u0435\u0440\u0441\u0438\u043a \u041f\u0440\u0438\u043c\u0435\u0440 \u21162. \u0424\u0430\u0439\u043b php\/mas_2.php &lt;html&gt; &lt;head&gt; &lt;title&gt;\u0420\u0430\u0437\u043c\u0435\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430&lt;\/title&gt; &lt;\/head&gt; &lt;body&gt; &lt;?php $\u0444\u0440\u0443\u043a\u0442\u044b = array(&#171;\u044f\u0431\u043b\u043e\u043a\u043e&#187;, &#171;\u0433\u0440\u0443\u0448\u0430&#187;, &#171;\u0441\u043b\u0438\u0432\u0430&#187;, &#171;\u043f\u0435\u0440\u0441\u0438\u043a&#187;, &#171;\u0433\u0440\u0443\u0448\u0430&#187;); print_r (array_count_values($\u0444\u0440\u0443\u043a\u0442\u044b)); ?&gt; &lt;\/body&gt; &lt;\/html&gt; \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 Array ( [\u044f\u0431\u043b\u043e\u043a\u043e] =&gt; 1 [\u0433\u0440\u0443\u0448\u0430] =&gt; 2 [\u0441\u043b\u0438\u0432\u0430] =&gt; 1 [\u043f\u0435\u0440\u0441\u0438\u043a] =&gt; 1 ) \u0424\u0443\u043d\u043a\u0446\u0438\u044f print_r() \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u043a\u043b\u044e\u0447\u0438 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0432 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0435. \u041f\u0440\u0438\u043c\u0435\u0440 \u21163. \u0424\u0430\u0439\u043b php\/mas_3.php &lt;html&gt; &lt;head&gt; &lt;title&gt;\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430&lt;\/title&gt; &lt;\/head&gt; &lt;body&gt; &lt;?php $\u0444\u0440\u0443\u043a\u0442\u044b = array(&#171;\u044f\u0431\u043b\u043e\u043a\u043e&#187;, &#171;\u0433\u0440\u0443\u0448\u0430&#187;, &#171;\u0441\u043b\u0438\u0432\u0430&#187;, &#171;\u043f\u0435\u0440\u0441\u0438\u043a&#187;, &#171;\u0433\u0440\u0443\u0448\u0430&#187;); foreach ($\u0444\u0440\u0443\u043a\u0442\u044b as $\u0444\u0440\u0443\u043a\u0442) { echo &#171;$\u0444\u0440\u0443\u043a\u0442&lt;br&gt;&#187;; } ?&gt; &lt;\/body&gt; &lt;\/html&gt; \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u044f\u0431\u043b\u043e\u043a\u043e \u0433\u0440\u0443\u0448\u0430 \u0441\u043b\u0438\u0432\u0430 \u043f\u0435\u0440\u0441\u0438\u043a \u0433\u0440\u0443\u0448\u0430 &nbsp;<\/p>\n<div class=\"rcl-rating-box rating-type-post box-like\"><div class=\"rating-wrapper\"><span class=\"vote-heart\"><i class=\"rcli fa-heartbeat\" aria-hidden=\"true\"><\/i><\/span><span class=\"rating-value\"><span class=\"rating-null\">0<\/span><\/span><\/div><\/div>","protected":false},"author":1,"featured_media":11,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pgc_sgb_lightbox_settings":"","footnotes":"","_links_to":"","_links_to_target":""},"categories":[1],"tags":[23],"class_list":["post-305","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-","tag-0902-17"],"featured_image_urls_v2":{"full":["https:\/\/huskynet.ru\/lms\/wp-content\/uploads\/2017\/10\/121212i.jpg",1000,800,false],"thumbnail":["https:\/\/huskynet.ru\/lms\/wp-content\/uploads\/2017\/10\/121212i-250x150.jpg",250,150,true],"medium":["https:\/\/huskynet.ru\/lms\/wp-content\/uploads\/2017\/10\/121212i-300x240.jpg",300,240,true],"medium_large":["https:\/\/huskynet.ru\/lms\/wp-content\/uploads\/2017\/10\/121212i-768x614.jpg",768,614,true],"large":["https:\/\/huskynet.ru\/lms\/wp-content\/uploads\/2017\/10\/121212i.jpg",1000,800,false],"1536x1536":["https:\/\/huskynet.ru\/lms\/wp-content\/uploads\/2017\/10\/121212i.jpg",1000,800,false],"2048x2048":["https:\/\/huskynet.ru\/lms\/wp-content\/uploads\/2017\/10\/121212i.jpg",1000,800,false],"post-thumbnail":["https:\/\/huskynet.ru\/lms\/wp-content\/uploads\/2017\/10\/121212i.jpg",375,300,false],"course-thumbnail":["https:\/\/huskynet.ru\/lms\/wp-content\/uploads\/2017\/10\/121212i.jpg",500,400,false],"lesson-thumbnail":["https:\/\/huskynet.ru\/lms\/wp-content\/uploads\/2017\/10\/121212i.jpg",500,400,false]},"post_excerpt_stackable_v2":"<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u21161. \u0424\u0430\u0439\u043b php\/mas_1.php &lt;html&gt; &lt;head&gt; &lt;title&gt;\u0420\u0430\u0437\u043c\u0435\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430&lt;\/title&gt; &lt;\/head&gt; &lt;body&gt; &lt;?php $\u0444\u0440\u0443\u043a\u0442\u044b = array(&#171;\u044f\u0431\u043b\u043e\u043a\u043e&#187;, &#171;\u0433\u0440\u0443\u0448\u0430&#187;, &#171;\u0441\u043b\u0438\u0432\u0430&#187;, &#171;\u043f\u0435\u0440\u0441\u0438\u043a&#187;); echo &#171;\u0420\u0430\u0437\u043c\u0435\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \\$\u0444\u0440\u0443\u043a\u0442\u044b \u0440\u0430\u0432\u0435\u043d &#171;.count($\u0444\u0440\u0443\u043a\u0442\u044b).&#187;&lt;br&gt;&#187;; echo &#171;\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \\$\u0444\u0440\u0443\u043a\u0442\u044b &#8212; &#171;.$\u0444\u0440\u0443\u043a\u0442\u044b[count($\u0444\u0440\u0443\u043a\u0442\u044b)-1].&#187;&lt;br&gt;&#187;; ?&gt; &lt;\/body&gt; &lt;\/html&gt; \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0420\u0430\u0437\u043c\u0435\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 $\u0444\u0440\u0443\u043a\u0442\u044b \u0440\u0430\u0432\u0435\u043d 4 \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 $\u0444\u0440\u0443\u043a\u0442\u044b &#8212; \u043f\u0435\u0440\u0441\u0438\u043a \u041f\u0440\u0438\u043c\u0435\u0440 \u21162. \u0424\u0430\u0439\u043b php\/mas_2.php &lt;html&gt; &lt;head&gt; &lt;title&gt;\u0420\u0430\u0437\u043c\u0435\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430&lt;\/title&gt; &lt;\/head&gt; &lt;body&gt; &lt;?php $\u0444\u0440\u0443\u043a\u0442\u044b = array(&#171;\u044f\u0431\u043b\u043e\u043a\u043e&#187;, &#171;\u0433\u0440\u0443\u0448\u0430&#187;, &#171;\u0441\u043b\u0438\u0432\u0430&#187;, &#171;\u043f\u0435\u0440\u0441\u0438\u043a&#187;, &#171;\u0433\u0440\u0443\u0448\u0430&#187;); print_r (array_count_values($\u0444\u0440\u0443\u043a\u0442\u044b)); ?&gt; &lt;\/body&gt; &lt;\/html&gt; \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 Array ( [\u044f\u0431\u043b\u043e\u043a\u043e] =&gt; 1 [\u0433\u0440\u0443\u0448\u0430] =&gt; 2 [\u0441\u043b\u0438\u0432\u0430] =&gt; 1 [\u043f\u0435\u0440\u0441\u0438\u043a] =&gt; 1 ) \u0424\u0443\u043d\u043a\u0446\u0438\u044f print_r() \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u043a\u043b\u044e\u0447\u0438 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0432 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0435. \u041f\u0440\u0438\u043c\u0435\u0440 \u21163. \u0424\u0430\u0439\u043b php\/mas_3.php &lt;html&gt; &lt;head&gt;&hellip;<\/p>\n<div class=\"rcl-rating-box rating-type-post box-like\"><div class=\"rating-wrapper\"><span class=\"vote-heart\"><i class=\"rcli fa-heartbeat\" aria-hidden=\"true\"><\/i><\/span><span class=\"rating-value\"><span class=\"rating-null\">0<\/span><\/span><\/div><\/div>","category_list_v2":"<a href=\"https:\/\/huskynet.ru\/lms\/category\/web-%d1%80%d0%b0%d0%b7%d1%80%d0%b0%d0%b1%d0%be%d1%82%d0%ba%d0%b0\/\" rel=\"category tag\">WEB \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430<\/a>","author_info_v2":{"name":"\u0413\u043e\u043b\u043e\u0432\u0430\u043d\u043e\u0432 \u041c\u0438\u0445\u0430\u0438\u043b","url":"https:\/\/huskynet.ru\/lms\/account\/?user=1"},"comments_num_v2":"0 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432","_links":{"self":[{"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/posts\/305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/comments?post=305"}],"version-history":[{"count":2,"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/posts\/305\/revisions"}],"predecessor-version":[{"id":308,"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/posts\/305\/revisions\/308"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/media\/11"}],"wp:attachment":[{"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/media?parent=305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/categories?post=305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/tags?post=305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}