{"id":3400,"date":"2014-06-24T21:58:11","date_gmt":"2014-06-24T21:58:11","guid":{"rendered":"http:\/\/webninjataylor.com\/library\/?p=3400"},"modified":"2014-06-24T21:58:11","modified_gmt":"2014-06-24T21:58:11","slug":"clearing-variables-and-record-sets-in-php","status":"publish","type":"post","link":"https:\/\/webninjataylor.com\/library\/clearing-variables-and-record-sets-in-php\/","title":{"rendered":"Clearing Variables and Record Sets in PHP"},"content":{"rendered":"<p>Clear a variable&#8217;s value(s)<\/p>\n<pre>&lt;?php\r\n    unset($variable);\r\n?&gt;<\/pre>\n<p>Clear a long record set to free memory. Only needs to be called if you are concerned about how much memory is being used for queries that return large result sets. All associated result memory is automatically freed at the end of the script&#8217;s execution.<\/p>\n<pre>&lt;?php\r\n    mysql_free_result($rsXYZ);\r\n?&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Clear a variable&#8217;s value(s) &lt;?php unset($variable); ?&gt; Clear a long record set to free memory. Only needs to be called if you are concerned about how much memory is being used for queries that return large result sets. All associated result memory is automatically freed at the end of the script&#8217;s execution. &lt;?php mysql_free_result($rsXYZ); ?&gt;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[144],"tags":[6],"class_list":["post-3400","post","type-post","status-publish","format-standard","hentry","category-web-shots","tag-php"],"_links":{"self":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/3400","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/comments?post=3400"}],"version-history":[{"count":1,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/3400\/revisions"}],"predecessor-version":[{"id":3401,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/3400\/revisions\/3401"}],"wp:attachment":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/media?parent=3400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/categories?post=3400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/tags?post=3400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}