{"id":572,"date":"2020-05-22T11:53:00","date_gmt":"2020-05-22T08:53:00","guid":{"rendered":"https:\/\/ek.oa.edu.ua\/Kukhta\/test3\/?p=572"},"modified":"2020-05-22T16:43:49","modified_gmt":"2020-05-22T13:43:49","slug":"navihatsiia-po-masyvakh-v-php","status":"publish","type":"post","link":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/navihatsiia-po-masyvakh-v-php\/","title":{"rendered":"\u041d\u0430\u0432\u0456\u0433\u0430\u0446\u0456\u044f \u043f\u043e \u043c\u0430\u0441\u0438\u0432\u0430\u0445"},"content":{"rendered":"<p>\u041d\u0430\u0432\u0456\u0433\u0430\u0446\u0456\u044f \u043f\u043e \u043c\u0430\u0441\u0438\u0432\u0443 \u0434\u0430\u0454 \u043c\u043e\u0436\u043b\u0438\u0432\u043e \u0434\u0456\u0437\u043d\u0430\u0442\u0438\u0441\u044f \u043f\u043e\u0442\u043e\u0447\u043d\u0438\u0439, \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439, \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u0456\u0439, \u043e\u0441\u0442\u0430\u043d\u043d\u0456\u0439 \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043c\u0430\u0441\u0438\u0432\u0443.<\/p>\n<p>\u0414\u043b\u044f \u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043c\u0430\u0441\u0438\u0432\u0443 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0456\u044e <code>current<\/code>:<\/p>\n<pre class=\"prettyprint linenums\">&lt;?php\r\necho \"Now is: \", current($arr), \"&lt;br&gt;\";\r\n?&gt;<\/pre>\n<p>\u0414\u043b\u044f \u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0433\u043e \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043c\u0430\u0441\u0438\u0432\u0443 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0456\u044e <code>next<\/code>:<\/p>\n<pre class=\"prettyprint linenums\">&lt;?php\r\necho \"Next is: \", next($arr), \"&lt;br&gt;\";\r\n?&gt;<\/pre>\n<p>\u0414\u043b\u044f \u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044c\u043e\u0433\u043e \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043c\u0430\u0441\u0438\u0432\u0443 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0456\u044e <code>prev<\/code>:<\/p>\n<pre class=\"prettyprint linenums\">&lt;?php\r\necho \"Previously is: \", prev($arr), \"&lt;br&gt;\";\r\n?&gt;<\/pre>\n<p>\u0414\u043b\u044f \u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043e\u0441\u0442\u0430\u043d\u043d\u044c\u043e\u0433\u043e \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043c\u0430\u0441\u0438\u0432\u0443 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0456\u044e <code>end<\/code>:<\/p>\n<pre class=\"prettyprint linenums\">&lt;?php\r\necho \"The end is: \", end($arr), \"&lt;br&gt;\";\r\n?&gt;<\/pre>\n<p>\u0414\u043b\u044f \u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043f\u0435\u0440\u0448\u043e\u0433\u043e \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043c\u0430\u0441\u0438\u0432\u0443 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0456\u044e <code>reset<\/code>:<\/p>\n<pre class=\"prettyprint linenums\">&lt;?php\r\necho \"First is: \", reset($arr), \"&lt;br&gt;\";\r\n?&gt;<\/pre>\n<p>\u041f\u0440\u0438\u043a\u043b\u0430\u0434 \u043d\u0430\u0432\u0456\u0433\u0430\u0446\u0456\u0457 \u043f\u043e \u043c\u0430\u0441\u0438\u0432\u0430\u0445:<\/p>\n<pre class=\"prettyprint linenums\">&lt;?php\r\n$arr[0] = \"PHP\"; \r\n$arr[1] = \"HTML\"; \r\n$arr[2] = \"CSS\";\r\n\r\necho \"Now is: \", current($arr), \"&lt;br&gt;\";\r\necho \"Next is: \", next($arr), \"&lt;br&gt;\";\r\necho \"Previously is: \", prev($arr), \"&lt;br&gt;\";\r\necho \"The end is: \", end($arr), \"&lt;br&gt;\";\r\necho \"First is: \", reset($arr), \"&lt;br&gt;\";\r\n?&gt;<\/pre>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0456:<\/p>\n<pre class=\"result\">Now is: PHP\r\nNext is: HTML\r\nPreviously is: PHP\r\nThe end is: CSS\r\nFirst is: PHP<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430\u0432\u0456\u0433\u0430\u0446\u0456\u044f \u043f\u043e \u043c\u0430\u0441\u0438\u0432\u0443 \u0434\u0430\u0454 \u043c\u043e\u0436\u043b\u0438\u0432\u043e \u0434\u0456\u0437\u043d\u0430\u0442\u0438\u0441\u044f \u043f\u043e\u0442\u043e\u0447\u043d\u0438\u0439, \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439, \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u0456\u0439, \u043e\u0441\u0442\u0430\u043d\u043d\u0456\u0439 \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043c\u0430\u0441\u0438\u0432\u0443. \u0414\u043b\u044f \u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043c\u0430\u0441\u0438\u0432\u0443 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0456\u044e current: &lt;?php echo &#8220;Now is: &#8220;, current($arr), &#8220;&lt;br&gt;&#8221;; ?&gt; \u0414\u043b\u044f \u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0433\u043e \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043c\u0430\u0441\u0438\u0432\u0443 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0456\u044e next: &lt;?php echo &#8220;Next is: &#8220;, next($arr), &#8220;&lt;br&gt;&#8221;; ?&gt; \u0414\u043b\u044f \u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044c\u043e\u0433\u043e \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043c\u0430\u0441\u0438\u0432\u0443 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0456\u044e prev: &lt;?php echo &#8220;Previously [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-572","post","type-post","status-publish","format-standard","hentry","category-massyvy"],"_links":{"self":[{"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/posts\/572","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/comments?post=572"}],"version-history":[{"count":2,"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/posts\/572\/revisions"}],"predecessor-version":[{"id":587,"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/posts\/572\/revisions\/587"}],"wp:attachment":[{"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/media?parent=572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/categories?post=572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/tags?post=572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}