{"id":476,"date":"2020-05-03T13:37:48","date_gmt":"2020-05-03T10:37:48","guid":{"rendered":"https:\/\/ek.oa.edu.ua\/Kukhta\/test3\/?p=476"},"modified":"2020-05-03T18:17:07","modified_gmt":"2020-05-03T15:17:07","slug":"zminni-v-pkhp","status":"publish","type":"post","link":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/zminni-v-pkhp\/","title":{"rendered":"\u0417\u043c\u0456\u043d\u043d\u0456 \u0432 \u043f\u0445\u043f"},"content":{"rendered":"<p>PHP \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u0438\u0439 \u043d\u0435 \u043b\u0438\u0448\u0435 \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0443. \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0449\u043e\u0431 \u043e\u0431\u0440\u043e\u0431\u043b\u044f\u0442\u0438 \u0440\u0456\u0437\u043d\u0456 \u0434\u0430\u043d\u0456 \u0431\u0443\u043b\u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043d\u0456 <strong>\u0437\u043c\u0456\u043d\u043d\u0456<\/strong>. \u0417\u043c\u0456\u043d\u043d\u0430 &#8211; \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 c \u0434\u0430\u043d\u0438\u043c\u0438. \u041a\u043e\u0436\u043d\u0430 \u0437\u043c\u0456\u043d\u043d\u0430 \u043c\u0456\u0441\u0442\u0438\u0442\u044c \u043f\u0435\u0432\u043d\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f.<\/p>\n<p>\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0437\u043c\u0456\u043d\u043d\u043e\u0457 \u0441\u043a\u043b\u0430\u0434\u0430\u0454\u0442\u044c\u0441\u044f \u0437\u0456 \u0437\u043d\u0430\u043a\u0443 \u0434\u043e\u043b\u0430\u0440\u0430 &#8211; $ \u0456 &#8220;\u0432\u0456\u043b\u044c\u043d\u043e\u0433\u043e&#8221; \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440\u0430 \u044f\u043a\u043e\u043c\u0443 \u043f\u0440\u0438\u0441\u0432\u043e\u044e\u0454\u0442\u044c\u0441\u044f \u044f\u043a\u0435-\u043d\u0435\u0431\u0443\u0434\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f. \u041d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434:<\/p>\n<pre class=\"prettyprint linenums\"><span class=\"hljs-preprocessor\">&lt;?php\r\n<\/span><strong><span class=\"hljs-variable\">$<\/span><\/strong><span class=\"hljs-variable\">name<\/span> = <span class=\"hljs-string\">\"\u0412\u0456\u043a\u0442\u043e\u0440\"<\/span>; \r\n<span class=\"hljs-preprocessor\">?&gt;<\/span><\/pre>\n<p class=\"text-danger\">\u0417\u0430\u043f\u0430\u043c&#8217;\u044f\u0442\u0430\u0439\u0442\u0435, \u0456\u043c&#8217;\u044f (\u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440) \u0437\u043c\u0456\u043d\u043d\u043e\u0457 \u043d\u0435 \u043c\u043e\u0436\u0435 \u0440\u043e\u0437\u043f\u043e\u0447\u0438\u043d\u0430\u0442\u0438\u0441\u044f \u0437 \u0446\u0438\u0444\u0440 \u0456 \u043f\u0440\u043e\u0431\u0456\u043b\u0443<\/p>\n<p class=\"text-warning\">\u0406\u043c&#8217;\u044f \u0437\u043c\u0456\u043d\u043d\u043e\u0457 \u0447\u0443\u0442\u043b\u0438\u0432\u0435 \u0434\u043e \u0440\u0435\u0433\u0456\u0441\u0442\u0440\u0443<\/p>\n<h3>\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0437\u043c\u0456\u043d\u043d\u043e\u0457<\/h3>\n<p>\u0417\u043c\u0456\u043d\u043d\u0430 \u0441\u0442\u0432\u043e\u0440\u044e\u0454\u0442\u044c\u0441\u044f \u0442\u043e\u0434\u0456, \u043a\u043e\u043b\u0438 \u0457\u0439 \u043f\u0440\u0438\u0441\u0432\u043e\u044e\u0454\u0442\u044c\u0441\u044f \u044f\u043a\u0435-\u043d\u0435\u0431\u0443\u0434\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f. \u0414\u043b\u044f \u043f\u0440\u0438\u0441\u0432\u043e\u0454\u043d\u043d\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0437\u043c\u0456\u043d\u043d\u0456\u0439 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043f\u0440\u0438\u0441\u0432\u043e\u0454\u043d\u043d\u044f, \u044f\u043a\u0438\u0439 \u0441\u043a\u043b\u0430\u0434\u0430\u0454\u0442\u044c\u0441\u044f \u0437\u0456 \u0437\u043d\u0430\u043a\u0443 \u0440\u0456\u0432\u043d\u043e\u0441\u0442\u0456 <code>=<\/code>. \u041d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434 :<\/p>\n<pre class=\"prettyprint linenums\">&lt;?php\r\n<span class=\"hljs-variable\">$surname<\/span> = <span class=\"hljs-string\">\"\u041f\u0435\u0442\u0440\u043e\u0432\u0438\u0447\"<\/span>; \r\n<span class=\"hljs-variable\">$number<\/span> = <span class=\"hljs-number\">1269794645<\/span>;\r\n<span class=\"hljs-variable\">$pi<\/span> = <span class=\"hljs-number\">3.14159265<\/span>; \r\n<span class=\"hljs-variable\">$hello<\/span> = <span class=\"hljs-string\">\"Hi all\"<\/span>;\r\n?&gt;<\/pre>\n<p>\u0417\u043c\u0456\u043d\u043d\u0443 \u043c\u043e\u0436\u043d\u0430 \u0432\u0438\u0432\u0435\u0441\u0442\u0438 \u043d\u0430 \u0435\u043a\u0440\u0430\u043d \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 <a href=\"https:\/\/ek.oa.edu.ua\/Kukhta\/test3\/vyvid-tekstu-na-ekran\/\">echo<\/a>, \u043e\u0441\u044c \u0442\u0430\u043a:<\/p>\n<pre class=\"prettyprint linenums\">&lt;?php\r\n<span class=\"hljs-variable\">$name<\/span> = <span class=\"hljs-string\">\"\u0412\u0456\u043a\u0442\u043e\u0440\"<\/span>; \r\n\r\n<span class=\"hljs-keyword\">echo<\/span> <span class=\"hljs-string\">\"\u0412\u0430\u0448\u0435 \u0456\u043c`\u044f \"<\/span>, <span class=\"hljs-variable\">$name<\/span>, <span class=\"hljs-string\">\"&lt;br&gt;\"<\/span>; \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\">\u0412\u0430\u0448\u0435 \u0456\u043c`\u044f \u0412\u0456\u043a\u0442\u043e\u0440<\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0442\u0432\u043e\u0440\u0438\u043c\u043e \u0437\u043c\u0456\u043d\u043d\u0443, \u044f\u043a\u0430 \u043c\u0456\u0441\u0442\u0438\u0442\u0438\u043c\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043a\u0456\u043b\u044c\u043a\u043e\u0441\u0442\u0456 \u0431\u0430\u043d\u0430\u043d\u0456\u0432, \u0434\u0440\u0443\u0433\u0430 \u0437\u043c\u0456\u043d\u043d\u0430 \u043a\u0456\u043b\u044c\u043a\u0456\u0441\u0442\u044c \u043b\u0438\u043c\u043e\u043d\u0456\u0432, \u0430 \u0442\u0440\u0435\u0442\u044f &#8211; \u0457\u0445 \u0441\u0443\u043c\u0430\u0440\u043d\u0430 \u043a\u0456\u043b\u044c\u043a\u0456\u0441\u0442\u044c.<\/p>\n<pre class=\"prettyprint linenums\">&lt;?php\r\n<span class=\"hljs-variable\">$bann<\/span> = <span class=\"hljs-number\">5<\/span>; <span class=\"hljs-comment\">\/\/ \u0411\u0430\u043d\u0430\u043d\u0438 <\/span>\r\n<span class=\"hljs-variable\">$lim<\/span> = <span class=\"hljs-number\">10<\/span>; <span class=\"hljs-comment\">\/\/ \u041b\u0438\u043c\u043e\u043d\u0438 <\/span>\r\n<span class=\"hljs-variable\">$together<\/span> = <span class=\"hljs-variable\">$bann<\/span> + <span class=\"hljs-variable\">$lim<\/span>; <span class=\"hljs-comment\">\/\/ \u0420\u0430\u0437\u043e\u043c <\/span>\r\n\r\n<span class=\"hljs-keyword\">echo<\/span> <span class=\"hljs-string\">\"\u041a\u0456\u043b\u044c\u043a\u0456\u0441\u0442\u044c \u0444\u0440\u0443\u043a\u0442\u0456\u0432 \"<\/span>, <span class=\"hljs-variable\">$together<\/span>;\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\"><span class=\"hljs-string\">\u041a\u0456\u043b\u044c\u043a\u0456\u0441\u0442\u044c \u0444\u0440\u0443\u043a\u0442\u0456\u0432<\/span> 15<\/pre>\n<p>\u042f\u043a \u0432\u0438 \u0431\u0430\u0447\u0438\u0442\u0435, \u0432 \u0442\u0440\u0435\u0442\u0456\u0439 \u0437\u043c\u0456\u043d\u043d\u0456\u0439 \u043c\u0438 \u0441\u0430\u043c\u0456 \u043d\u0456\u0447\u043e\u0433\u043e \u043d\u0435 \u0441\u043a\u043b\u0430\u0434\u0430\u043b\u0438, \u0437\u0430 \u043d\u0430\u0441 \u0446\u0435 \u0437\u0440\u043e\u0431\u0438\u0432 PHP.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u0438\u0439 \u043d\u0435 \u043b\u0438\u0448\u0435 \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0443. \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0449\u043e\u0431 \u043e\u0431\u0440\u043e\u0431\u043b\u044f\u0442\u0438 \u0440\u0456\u0437\u043d\u0456 \u0434\u0430\u043d\u0456 \u0431\u0443\u043b\u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043d\u0456 \u0437\u043c\u0456\u043d\u043d\u0456. \u0417\u043c\u0456\u043d\u043d\u0430 &#8211; \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 c \u0434\u0430\u043d\u0438\u043c\u0438. \u041a\u043e\u0436\u043d\u0430 \u0437\u043c\u0456\u043d\u043d\u0430 \u043c\u0456\u0441\u0442\u0438\u0442\u044c \u043f\u0435\u0432\u043d\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f. \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0437\u043c\u0456\u043d\u043d\u043e\u0457 \u0441\u043a\u043b\u0430\u0434\u0430\u0454\u0442\u044c\u0441\u044f \u0437\u0456 \u0437\u043d\u0430\u043a\u0443 \u0434\u043e\u043b\u0430\u0440\u0430 &#8211; $ \u0456 &#8220;\u0432\u0456\u043b\u044c\u043d\u043e\u0433\u043e&#8221; \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440\u0430 \u044f\u043a\u043e\u043c\u0443 \u043f\u0440\u0438\u0441\u0432\u043e\u044e\u0454\u0442\u044c\u0441\u044f \u044f\u043a\u0435-\u043d\u0435\u0431\u0443\u0434\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f. \u041d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434: &lt;?php $name = &#8220;\u0412\u0456\u043a\u0442\u043e\u0440&#8221;; ?&gt; \u0417\u0430\u043f\u0430\u043c&#8217;\u044f\u0442\u0430\u0439\u0442\u0435, \u0456\u043c&#8217;\u044f (\u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440) \u0437\u043c\u0456\u043d\u043d\u043e\u0457 \u043d\u0435 \u043c\u043e\u0436\u0435 \u0440\u043e\u0437\u043f\u043e\u0447\u0438\u043d\u0430\u0442\u0438\u0441\u044f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-476","post","type-post","status-publish","format-standard","hentry","category-zminni"],"_links":{"self":[{"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/posts\/476","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=476"}],"version-history":[{"count":3,"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/posts\/476\/revisions"}],"predecessor-version":[{"id":485,"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/posts\/476\/revisions\/485"}],"wp:attachment":[{"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/media?parent=476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/categories?post=476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/tags?post=476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}