{"id":546,"date":"2013-12-27T02:50:28","date_gmt":"2013-12-27T02:50:28","guid":{"rendered":"http:\/\/a1webdesignteam.com\/blog\/?p=546"},"modified":"2013-12-27T02:50:28","modified_gmt":"2013-12-27T02:50:28","slug":"variable-testing-and-manipulation-functions","status":"publish","type":"post","link":"https:\/\/a1webdesignteam.com\/blog\/variable-testing-and-manipulation-functions\/","title":{"rendered":"Variable-Testing and Manipulation Functions"},"content":{"rendered":"<p>For a complete list of variable functions see\u00a0<a href=\"http:\/\/www.php.net\/manual\/en\/ref.var.php\">http:\/\/www.php.net\/manual\/en\/ref.var.php.<\/a><\/p>\n<p>PHP provides built-in functions for checking if a variable exists, checking if a variable holds a value, and removing a variable.<\/p>\n<div>To output the results of these functions to a browser, use the var_dump() function (e.g. var_dump(isset($a));).<\/div>\n<p>&nbsp;<\/p>\n<table>\n<thead>\n<tr>\n<th>Function<\/th>\n<th>Explanation<\/th>\n<th>Example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>isset()<\/code><\/td>\n<td>Checks to see if a variable exists. Returns true or false.<\/td>\n<td><code>isset($a)<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>unset()<\/code><\/td>\n<td>Removes a variable from memory.<\/td>\n<td><code>unset($a)<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>empty()<\/code><\/td>\n<td>Checks to see if a variable contains a non-empty, non-false value.<\/td>\n<td><code>empty($a)<\/p>\n<p><\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>For a complete list of variable functions see\u00a0http:\/\/www.php.net\/manual\/en\/ref.var.php. PHP provides built-in functions for checking if a variable exists, checking if a variable holds a value, and removing a variable. To output the results of these functions to a browser, use the var_dump() function (e.g. var_dump(isset($a));). &nbsp; Function Explanation Example isset() Checks to see if a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0},"categories":[30],"tags":[],"_links":{"self":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts\/546"}],"collection":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/comments?post=546"}],"version-history":[{"count":0,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts\/546\/revisions"}],"wp:attachment":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/media?parent=546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/categories?post=546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/tags?post=546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}