{"id":421,"date":"2023-05-19T04:36:31","date_gmt":"2023-05-19T04:36:31","guid":{"rendered":"https:\/\/itnotes.apjsoftwares.com\/?p=421"},"modified":"2023-05-19T04:36:31","modified_gmt":"2023-05-19T04:36:31","slug":"how-is-it-possible-to-cast-types-in-php","status":"publish","type":"post","link":"https:\/\/itnotes.apjsoftwares.in\/index.php\/2023\/05\/19\/how-is-it-possible-to-cast-types-in-php\/","title":{"rendered":"How is it possible to cast types in PHP?"},"content":{"rendered":"\n<p>The name of the output type has to be specified in parentheses before the variable which is to be cast as follows:<\/p>\n\n\n\n<p>(int), (integer) \u2013 cast to integer<\/p>\n\n\n\n<p>(bool), (boolean) \u2013 cast to boolean<\/p>\n\n\n\n<p>(float), (double), (real) \u2013 cast to float<\/p>\n\n\n\n<p>(string) \u2013 cast to string<\/p>\n\n\n\n<p>(array) \u2013 cast to array<\/p>\n\n\n\n<p>(object) \u2013 cast to object<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The name of the output type has to be specified in parentheses before the variable&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/421"}],"collection":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/comments?post=421"}],"version-history":[{"count":1,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/421\/revisions"}],"predecessor-version":[{"id":422,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/421\/revisions\/422"}],"wp:attachment":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/media?parent=421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/categories?post=421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/tags?post=421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}