{"id":3134,"date":"2019-06-13T00:00:59","date_gmt":"2019-06-13T00:00:59","guid":{"rendered":"http:\/\/softlect.in\/?p=3134"},"modified":"2019-06-13T00:36:33","modified_gmt":"2019-06-13T00:36:33","slug":"php-data-types","status":"publish","type":"post","link":"http:\/\/softlect.com\/index.php\/php-data-types\/","title":{"rendered":"PHP Data Types"},"content":{"rendered":"<p>Data Type is PHP<\/p>\n<p>Integer<\/p>\n<p>Double<\/p>\n<p>Boolean TRUE \/ FALSE case insensitive<\/p>\n<p>String (There is no character type in PHP)<\/p>\n<p>&nbsp;<\/p>\n<p>String can be defined using single quotes or double quotes<\/p>\n<p>In single quoted string newline character or escape sequences or embedded variables are not recognized. But using double quoted strings escape sequence and embedded variable are recognized.<\/p>\n<p>For example<\/p>\n<p>\u2018Result is: $sum\u2019\u00a0\u00a0\u00a0\u00a0 displayed as it is<\/p>\n<p>\u201cResult is: $sum\u201d\u00a0\u00a0\u00a0 displayed with $sum value<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Boolean TRUE \/ FALSE case insensitive<\/p>\n<p>If the expression is in integer context then it evaluates to false if result of the expression is zero else it is true<\/p>\n<p>If the string expression is used in Boolean context then it evaluates to false if the result of the expression is empty string or \u201c0\u201d otherwise its true even \u201c0.0\u201d is true<\/p>\n<p>&nbsp;<\/p>\n<p>if it\u2019s a double expression then 0.0 evaluates to false otherwise its true<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Data Type is PHP Integer Double Boolean TRUE \/ FALSE case insensitive String (There is no character type in PHP) &nbsp; String can be defined using single quotes or double&hellip; <\/p>\n","protected":false},"author":1,"featured_media":3177,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[82],"tags":[],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/posts\/3134"}],"collection":[{"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/comments?post=3134"}],"version-history":[{"count":2,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/posts\/3134\/revisions"}],"predecessor-version":[{"id":3159,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/posts\/3134\/revisions\/3159"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/media\/3177"}],"wp:attachment":[{"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/media?parent=3134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/categories?post=3134"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/tags?post=3134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}