{"id":490,"date":"2020-05-05T20:40:35","date_gmt":"2020-05-05T17:40:35","guid":{"rendered":"https:\/\/ek.oa.edu.ua\/Kukhta\/test3\/?p=490"},"modified":"2020-05-05T20:43:32","modified_gmt":"2020-05-05T17:43:32","slug":"konstanty-v-php","status":"publish","type":"post","link":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/konstanty-v-php\/","title":{"rendered":"\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0438 \u0432 PHP"},"content":{"rendered":"<p>\u041a\u043e\u043b\u0438 \u043d\u0435 \u0442\u0440\u0435\u0431\u0430 \u043c\u0456\u043d\u044f\u0442\u0438 \u0437\u0430\u0434\u0430\u043d\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0434\u043b\u044f \u0437\u043c\u0456\u043d\u043d\u043e\u0457, \u0442\u043e \u043c\u0430\u0454 \u0441\u0435\u043d\u0441 \u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 \u0456 \u043f\u043e\u0442\u0456\u043c \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u0442\u0438 \u0457\u0457 \u0443 \u0431\u0443\u0434\u044c-\u044f\u043a\u0456\u0439 \u0447\u0430\u0441\u0442\u0438\u043d\u0456 \u0441\u043a\u0440\u0438\u043f\u0442\u0430. \u0414\u043b\u044f \u043e\u043f\u0438\u0441\u0443 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0456\u044e <code>define<\/code>,\u00a0\u044f\u043a\u0456\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0454\u0442\u044c\u0441\u044f \u0457\u0457 \u0456\u043c&#8217;\u044f \u0456 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f, \u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434:<\/p>\n<pre class=\"prettyprint linenums\"><span class=\"hljs-preprocessor\">&lt;?php\r\n<\/span>define(<span class=\"hljs-string\">\"pi\"<\/span>, <span class=\"hljs-number\">3.14<\/span>);\r\n<span class=\"hljs-preprocessor\">?&gt;<\/span><\/pre>\n<p>\u0406\u043c&#8217;\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0438 \u0442\u0440\u0435\u0431\u0430 \u0437\u0430\u0432\u0436\u0434\u0438 \u0431\u0440\u0430\u0442\u0438 \u0432 \u043b\u0430\u043f\u043a\u0438, \u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0442\u0456\u043b\u044c\u043a\u0438 \u0442\u043e\u0434\u0456, \u043a\u043e\u043b\u0438 \u0432\u043e\u043d\u043e \u0454 \u0440\u044f\u0434\u043a\u043e\u043c.<\/p>\n<p>\u041f\u0440\u0438\u043a\u043b\u0430\u0434 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0438 :<\/p>\n<pre class=\"prettyprint linenums\">&lt;?php\r\ndefine(<span class=\"hljs-string\">\"pi\"<\/span>, <span class=\"hljs-number\">3.14<\/span>); \r\n\r\n<span class=\"hljs-keyword\">echo<\/span> <span class=\"hljs-string\">\"\u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 \u041f\u0456 \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454 \"<\/span>, pi; \r\n<span class=\"hljs-preprocessor\">?&gt;<\/span><\/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\">\u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 \u041f\u0456 \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454 3.14<\/pre>\n<p>\u0421\u043f\u0440\u043e\u0431\u0430 \u0437\u043c\u0456\u043d\u0438 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0435 \u0434\u043e \u043d\u0435\u043f\u0440\u0430\u0446\u0435\u0437\u0434\u0430\u0442\u043d\u043e\u0441\u0442\u0456 \u0441\u043a\u0440\u0438\u043f\u0442\u0430!<br \/>\n\u0406\u043c\u0435\u043d\u0435\u043c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0438 \u043d\u0435 \u043c\u043e\u0436\u0443\u0442\u044c \u0431\u0443\u0442\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u0456 \u0437\u0430\u0440\u0435\u0437\u0435\u0440\u0432\u043e\u0432\u0430\u043d\u0456 \u0441\u043b\u043e\u0432\u0430 \u0432 PHP, \u044f\u043a\u0456 \u043e\u043f\u0438\u0441\u0430\u043d\u0456 \u043d\u0438\u0436\u0447\u0435 :<\/p>\n<table class=\"table table-bordered table-responsive\" style = \"width:max-content;\">\n<tbody>\n<tr>\n<th>__CLASS__<\/th>\n<th>__FILE__<\/th>\n<th>__FUNCTION__<\/th>\n<th>__LINE__<\/th>\n<th>__METHOD__<\/th>\n<\/tr>\n<tr>\n<td>and<\/td>\n<td>default<\/td>\n<td>endif<\/td>\n<td>global<\/td>\n<td>print<\/td>\n<\/tr>\n<tr>\n<td>array<\/td>\n<td>die<\/td>\n<td>endswitch<\/td>\n<td>if<\/td>\n<td>require<\/td>\n<\/tr>\n<tr>\n<td>as<\/td>\n<td>do<\/td>\n<td>endwhile<\/td>\n<td>include<\/td>\n<td>require_once<\/td>\n<\/tr>\n<tr>\n<td>break<\/td>\n<td>echo<\/td>\n<td>eval<\/td>\n<td>include_once<\/td>\n<td>return<\/td>\n<\/tr>\n<tr>\n<td>case<\/td>\n<td>else<\/td>\n<td>exception<\/td>\n<td>isset<\/td>\n<td>static<\/td>\n<\/tr>\n<tr>\n<td>cfunction<\/td>\n<td>elseif<\/td>\n<td>exit<\/td>\n<td>list<\/td>\n<td>switch<\/td>\n<\/tr>\n<tr>\n<td>class<\/td>\n<td>empty<\/td>\n<td>extends<\/td>\n<td>new<\/td>\n<td>unset<\/td>\n<\/tr>\n<tr>\n<td>const<\/td>\n<td>enddeclare<\/td>\n<td>for<\/td>\n<td>old_function<\/td>\n<td>use<\/td>\n<\/tr>\n<tr>\n<td>continue<\/td>\n<td>endfor<\/td>\n<td>foreach<\/td>\n<td>or<\/td>\n<td>while<\/td>\n<\/tr>\n<tr>\n<td>declare<\/td>\n<td>endforeach<\/td>\n<td>function<\/td>\n<td>php_user_filter<\/td>\n<td>xor<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>__LINE__<\/strong><br \/>\n\u041d\u043e\u043c\u0435\u0440 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0440\u044f\u0434\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430<br \/>\n<strong>__FILE__<\/strong><br \/>\n\u041f\u043e\u0432\u043d\u0435 \u0456\u043c&#8217;\u044f \u0444\u0430\u0439\u043b\u0443 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430<br \/>\n<strong>__FUNCTION__<\/strong><br \/>\n\u0406\u043c&#8217;\u044f \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0444\u0443\u043d\u043a\u0446\u0456\u0457, \u0449\u043e \u0432\u0438\u043a\u043e\u043d\u0443\u0454\u0442\u044c\u0441\u044f<br \/>\n<strong>__CLASS__<\/strong><br \/>\n\u0406\u043c&#8217;\u044f \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0443<br \/>\n<strong>__METHOD__<\/strong><br \/>\n\u0406\u043c&#8217;\u044f \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0443 \u043a\u043b\u0430\u0441\u0443<br \/>\n<strong>PHP_VERSION<\/strong><br \/>\n\u0412\u0435\u0440\u0441\u0456\u044f PHP<br \/>\n<strong>PHP_OS<\/strong><br \/>\n\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 PHP<br \/>\n<strong>DEFAULT_INNCLUE_PATH<\/strong><br \/>\n\u0421\u043f\u0438\u0441\u043e\u043a \u0448\u043b\u044f\u0445\u0456\u0432, \u0432 \u044f\u043a\u0438\u0445 PHP \u0448\u0443\u043a\u0430\u0454 \u0444\u0430\u0439\u043b\u0438, \u0449\u043e \u043f\u0456\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u044c\u0441\u044f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u043e\u043b\u0438 \u043d\u0435 \u0442\u0440\u0435\u0431\u0430 \u043c\u0456\u043d\u044f\u0442\u0438 \u0437\u0430\u0434\u0430\u043d\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0434\u043b\u044f \u0437\u043c\u0456\u043d\u043d\u043e\u0457, \u0442\u043e \u043c\u0430\u0454 \u0441\u0435\u043d\u0441 \u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 \u0456 \u043f\u043e\u0442\u0456\u043c \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u0442\u0438 \u0457\u0457 \u0443 \u0431\u0443\u0434\u044c-\u044f\u043a\u0456\u0439 \u0447\u0430\u0441\u0442\u0438\u043d\u0456 \u0441\u043a\u0440\u0438\u043f\u0442\u0430. \u0414\u043b\u044f \u043e\u043f\u0438\u0441\u0443 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0456\u044e define,\u00a0\u044f\u043a\u0456\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0454\u0442\u044c\u0441\u044f \u0457\u0457 \u0456\u043c&#8217;\u044f \u0456 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f, \u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434: &lt;?php define(&#8220;pi&#8221;, 3.14); ?&gt; \u0406\u043c&#8217;\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0438 \u0442\u0440\u0435\u0431\u0430 \u0437\u0430\u0432\u0436\u0434\u0438 \u0431\u0440\u0430\u0442\u0438 \u0432 \u043b\u0430\u043f\u043a\u0438, \u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0442\u0456\u043b\u044c\u043a\u0438 \u0442\u043e\u0434\u0456, \u043a\u043e\u043b\u0438 \u0432\u043e\u043d\u043e \u0454 \u0440\u044f\u0434\u043a\u043e\u043c. \u041f\u0440\u0438\u043a\u043b\u0430\u0434 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0438 [&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-490","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\/490","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=490"}],"version-history":[{"count":3,"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/posts\/490\/revisions"}],"predecessor-version":[{"id":493,"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/posts\/490\/revisions\/493"}],"wp:attachment":[{"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/media?parent=490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/categories?post=490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/tags?post=490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}