{"id":3875,"date":"2022-01-19T13:25:32","date_gmt":"2022-01-19T13:25:32","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=3875"},"modified":"2022-02-17T07:13:46","modified_gmt":"2022-02-17T07:13:46","slug":"variable-functions","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/php\/memory\/variable-functions","title":{"rendered":"Variable Functions"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">gettype()<\/h4>\n\n\n\n<p>Returns a string value representing the data type of a variable<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  $name = \"Adam\";\n  $age = 1000;\n \n  echo gettype($name); \/\/ Prints: string\n\n  echo gettype($age); \/\/ Prints: integer\n\n  if (gettype($name) === \"string\")<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">var_dump()<\/h4>\n\n\n\n<p>Prints details about the variable it is given<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>var_dump($name); \/\/ Prints: string(4) \"Adam\"\n\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>gettype() Returns a string value representing the data type of a variable var_dump() Prints details about the variable it is given<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-3875","post","type-post","status-publish","format-standard","hentry","category-memory"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/3875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=3875"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/3875\/revisions"}],"predecessor-version":[{"id":4058,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/3875\/revisions\/4058"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=3875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=3875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=3875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}