{"id":49671,"date":"2018-09-17T08:08:52","date_gmt":"2018-09-17T02:08:52","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=49671"},"modified":"2018-09-17T14:28:33","modified_gmt":"2018-09-17T08:28:33","slug":"empty","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=49671","title":{"rendered":"empty()"},"content":{"rendered":"<p><span class=\"refname\">\u0424\u0443\u043d\u043a\u0446\u0438\u044f<\/span><strong><span class=\"refname\">\u00a0empty()<\/span><\/strong>\u00a0\u2014\u00a0<span class=\"dc-title\">\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u043f\u0443\u0441\u0442\u0430 \u043b\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f.<\/span><\/p>\n<p><span class=\"dc-title\">\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043b\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043f\u0443\u0441\u0442\u043e\u0439. \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u0443\u0441\u0442\u043e\u0439, \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0438\u043b\u0438 \u0435\u0451 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0432\u043d\u043e FALSE.\u00a0<strong>empty()<\/strong>\u00a0\u043d\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442.<\/span><\/p>\n<p><span class=\"dc-title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f:<\/span><\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><span style=\"color: #000088;\">$a<\/span><span style=\"color: #339933;\">=<\/span><span style=\"color: #0000ff;\">\"\"<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #b1b100;\">echo<\/span> <a href=\"http:\/\/www.php.net\/empty\"><span style=\"color: #990000;\">empty<\/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\u00a0\r\n<span style=\"color: #666666; font-style: italic;\">\/\/ \u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0432\u0435\u0434\u0435\u0442 1<\/span>\r\n\u00a0\r\n\u00a0\r\n<span style=\"color: #000088;\">$a<\/span> <span style=\"color: #339933;\">=<\/span> <span style=\"color: #009900; font-weight: bold;\">FALSE<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #b1b100;\">echo<\/span> <a href=\"http:\/\/www.php.net\/empty\"><span style=\"color: #990000;\">empty<\/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\u00a0\r\n<span style=\"color: #666666; font-style: italic;\">\/\/ \u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0432\u0435\u0434\u0435\u0442 1<\/span>\r\n\u00a0\r\n\u00a0\r\n<span style=\"color: #000088;\">$a<\/span><span style=\"color: #339933;\">=<\/span><span style=\"color: #0000ff;\">\"0\"<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #b1b100;\">if<\/span><span style=\"color: #009900;\">(<\/span><a href=\"http:\/\/www.php.net\/empty\"><span style=\"color: #990000;\">empty<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$a<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #009900;\">{<\/span>\r\n<span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #0000ff;\">\"\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043d\u0435 \u0437\u0430\u0434\u0430\u043d\u0430\"<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #009900;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #666666; font-style: italic;\">\/\/ \u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0432\u0435\u0434\u0435\u0442 - \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043d\u0435 \u0437\u0430\u0434\u0430\u043d\u0430<\/span>\r\n\u00a0\r\n<span style=\"color: #000088;\">$a<\/span><span style=\"color: #339933;\">=<\/span><span style=\"color: #cc66cc;\">5<\/span><span style=\"color: #339933;\">;<\/span>\r\n<a href=\"http:\/\/www.php.net\/var_dump\"><span style=\"color: #990000;\">var_dump<\/span><\/a><span style=\"color: #009900;\">(<\/span><a href=\"http:\/\/www.php.net\/empty\"><span style=\"color: #990000;\">empty<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$a<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n\u00a0\r\n<span style=\"color: #666666; font-style: italic;\">\/\/ \u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0432\u0435\u0434\u0435\u0442 - bool(false)<\/span>\r\n\u00a0\r\n\u00a0\r\n<span style=\"color: #000088;\">$a<\/span><span style=\"color: #339933;\">=<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #339933;\">;<\/span>\r\n<a href=\"http:\/\/www.php.net\/var_dump\"><span style=\"color: #990000;\">var_dump<\/span><\/a><span style=\"color: #009900;\">(<\/span><a href=\"http:\/\/www.php.net\/empty\"><span style=\"color: #990000;\">empty<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$a<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n\u00a0\r\n<span style=\"color: #666666; font-style: italic;\">\/\/ \u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0432\u0435\u0434\u0435\u0442 - bool(true)<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f\u00a0empty()\u00a0\u2014\u00a0\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u043f\u0443\u0441\u0442\u0430 \u043b\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043b\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043f\u0443\u0441\u0442\u043e\u0439. \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u0443\u0441\u0442\u043e\u0439, \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0438\u043b\u0438 \u0435\u0451 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0432\u043d\u043e FALSE.\u00a0empty()\u00a0\u043d\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442. \u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f: $a=&#187;&#187;; echo empty($a); \u00a0 \/\/ \u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0432\u0435\u0434\u0435\u0442 1 \u00a0 \u00a0 $a = FALSE; echo empty($a); \u00a0 \/\/ \u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0432\u0435\u0434\u0435\u0442 1 \u00a0 \u00a0 $a=&#187;0&#8243;; if(empty($a)){ echo &#171;\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f [&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-49671","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"views":1403,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/49671","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=49671"}],"version-history":[{"count":1,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/49671\/revisions"}],"predecessor-version":[{"id":49673,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/49671\/revisions\/49673"}],"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=49671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=49671"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=49671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}