<br />
<b>Warning</b>:  Undefined array key "global_protection_id" in <b>/home/wikitechy/public_html/interview-questions/wp-content/plugins/content-protector/inc/class-ps-rest-handler.php</b> on line <b>51</b><br />
{"id":4506,"date":"2022-07-30T10:49:13","date_gmt":"2022-07-30T10:49:13","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=4506"},"modified":"2022-07-30T10:49:13","modified_gmt":"2022-07-30T10:49:13","slug":"how-many-data-types-are-there-in-php","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/php\/how-many-data-types-are-there-in-php\/","title":{"rendered":"How many data types are there in PHP ?"},"content":{"rendered":"<ul>\n<li style=\"text-align: justify;\">PHP data types are used to hold different types of values or data.<\/li>\n<li style=\"text-align: justify;\">There are eight primitive data types which are further categorized into three types, they are:\n<ul>\n<li>Scalar types<\/li>\n<li>Compound types<\/li>\n<li>Special types<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2 id=\"scalar-data-types\" style=\"text-align: justify;\"><strong>Scalar data types<\/strong><\/h2>\n<ul style=\"text-align: justify;\">\n<li>Scalar data types hold only single value and it consists of four data types, they are boolean, integer, float and string.<\/li>\n<\/ul>\n<h3 id=\"boolean\" style=\"text-align: justify;\"><strong>Boolean<\/strong><\/h3>\n<ul style=\"text-align: justify;\">\n<li>Booleans are the simplest data type works like switch and holds only two values TRUE (1) or FALSE (0).<\/li>\n<li>It is often used with conditional statements were if the condition is correct, it returns TRUE otherwise FALSE.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>Sample Code<\/strong><\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">&lt;?php   <br\/>    if (TRUE)  <br\/>        echo &quot;This condition is TRUE.&quot;;  <br\/>    if (FALSE)  <br\/>        echo &quot;This condition is FALSE.&quot;;  <br\/>?&gt;  <\/code><\/pre> <\/div>\n<p style=\"text-align: justify;\"><strong>Output<\/strong><\/p>\n<p style=\"text-align: justify;\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-4507\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/boolean.png\" alt=\"\" width=\"2008\" height=\"227\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/boolean.png 2008w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/boolean-300x34.png 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/boolean-1024x116.png 1024w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/boolean-768x87.png 768w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/boolean-1536x174.png 1536w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/boolean-390x44.png 390w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/boolean-820x93.png 820w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/boolean-1180x133.png 1180w\" sizes=\"(max-width: 2008px) 100vw, 2008px\" \/><\/p>\n<h3 id=\"integer\" style=\"text-align: justify;\">Integer<\/h3>\n<ul style=\"text-align: justify;\">\n<li>Integer means numeric data, it can be\u00a0either positive or negative sign.<\/li>\n<li>It holds only whole numbers, like numbers without decimal points or fractional parts.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>Sample Code<\/strong><\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">&lt;?php   <br\/>    $dec1 = 34;  <br\/>    $oct1 = 0243;  <br\/>    $hexa1 = 0x45;  <br\/>    echo &quot;Decimal number: &quot; .$dec1. &quot;&lt;\/br&gt;&quot;;  <br\/>    echo &quot;Octal number: &quot; .$oct1. &quot;&lt;\/br&gt;&quot;;  <br\/>    echo &quot;HexaDecimal number: &quot; .$hexa1. &quot;&lt;\/br&gt;&quot;;  <br\/>?&gt;  <\/code><\/pre> <\/div>\n<p style=\"text-align: justify;\"><strong>Output<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4508\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/integer.png\" alt=\"\" width=\"2346\" height=\"442\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/integer.png 2346w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/integer-300x57.png 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/integer-1024x193.png 1024w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/integer-768x145.png 768w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/integer-1536x289.png 1536w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/integer-2048x386.png 2048w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/integer-390x73.png 390w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/integer-820x154.png 820w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/integer-1180x222.png 1180w\" sizes=\"(max-width: 2346px) 100vw, 2346px\" \/><\/p>\n<h3 id=\"float\" style=\"text-align: justify;\">Float<\/h3>\n<ul style=\"text-align: justify;\">\n<li>A floating-point number is a number with a decimal point and unlike integer, it can hold numbers with a fractional or decimal point, including a negative or positive sign.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>Sample Code<\/strong><\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">&lt;?php   <br\/>    $n1 = 19.34;  <br\/>    $n2 = 54.472;  <br\/>    $sum = $n1 + $n2;  <br\/>    echo &quot;Addition of floating numbers: &quot; .$sum;  <br\/>?&gt;  <\/code><\/pre> <\/div>\n<p style=\"text-align: justify;\"><strong>Output<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4509\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/float-datatype-in-php.png\" alt=\"\" width=\"2358\" height=\"295\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/float-datatype-in-php.png 2358w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/float-datatype-in-php-300x38.png 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/float-datatype-in-php-1024x128.png 1024w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/float-datatype-in-php-768x96.png 768w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/float-datatype-in-php-1536x192.png 1536w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/float-datatype-in-php-2048x256.png 2048w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/float-datatype-in-php-390x49.png 390w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/float-datatype-in-php-820x103.png 820w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/float-datatype-in-php-1180x148.png 1180w\" sizes=\"(max-width: 2358px) 100vw, 2358px\" \/><\/p>\n<h3 id=\"string\" style=\"text-align: justify;\">String<\/h3>\n<ul style=\"text-align: justify;\">\n<li>String is a non-numeric data type which holds letters or any alphabets, numbers, and even special characters.<\/li>\n<li>Its value must be enclosed either within <strong>single quotes\u00a0<\/strong>or in\u00a0<strong>double quotes<\/strong> and both are treated differently.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>Sample\u00a0 Code<\/strong><\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">&lt;?php   <br\/>    $company = &quot;Wikitechy&quot;;  <br\/>    \/\/both single and double quote statements will treat different  <br\/>    echo &quot;Welcome to $company&quot;;  <br\/>    echo &quot;&lt;\/br&gt;&quot;;  <br\/>    echo &quot;Welcome to $company&#039;;  <br\/>?&gt;  <\/code><\/pre> <\/div>\n<p style=\"text-align: justify;\"><strong>Output<\/strong><\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4510\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/string-datatype-php.png\" alt=\"\" width=\"1614\" height=\"379\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/string-datatype-php.png 1614w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/string-datatype-php-300x70.png 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/string-datatype-php-1024x240.png 1024w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/string-datatype-php-768x180.png 768w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/string-datatype-php-1536x361.png 1536w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/string-datatype-php-390x92.png 390w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/string-datatype-php-820x193.png 820w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/string-datatype-php-1180x277.png 1180w\" sizes=\"(max-width: 1614px) 100vw, 1614px\" \/><\/p>\n<h2 id=\"compound-data-type\" style=\"text-align: justify;\"><strong>Compound data type<\/strong><\/h2>\n<ul style=\"text-align: justify;\">\n<li>Compound data type can hold multiple and it consists of two data types, they are array and object.<\/li>\n<\/ul>\n<h3 id=\"array\" style=\"text-align: justify;\"><strong>Array<\/strong><\/h3>\n<ul style=\"text-align: justify;\">\n<li>In single variable an array canstore multiple values of same data type.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>Sample Code<\/strong><\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">&lt;?php\u00a0\u00a0\u00a0<br\/><br\/>\u00a0\u00a0\u00a0\u00a0$bikes\u00a0=\u00a0array\u00a0(&quot;Royal\u00a0Enfield&quot;,\u00a0&quot;Yamaha&quot;,\u00a0&quot;KTM&quot;);\u00a0\u00a0<br\/><br\/>\u00a0\u00a0\u00a0\u00a0var_dump($bikes);\u00a0\u00a0\u00a0\/\/the\u00a0var_dump()\u00a0function\u00a0returns\u00a0the\u00a0datatype\u00a0and\u00a0values\u00a0<br\/><br\/>\u00a0\u00a0 \u00a0echo\u00a0&quot;&lt;\/br&gt;&quot;;\u00a0\u00a0<br\/><br\/>\u00a0\u00a0\u00a0\u00a0echo\u00a0&quot;Array\u00a0Element1:\u00a0$bikes[0]\u00a0&lt;\/br&gt;&quot;;\u00a0\u00a0<br\/><br\/>\u00a0\u00a0\u00a0\u00a0echo\u00a0&quot;Array\u00a0Element2:\u00a0$bikes[1]\u00a0&lt;\/br&gt;&quot;;\u00a0\u00a0<br\/><br\/>\u00a0\u00a0\u00a0\u00a0echo\u00a0&quot;Array\u00a0Element3:\u00a0$bikes[2]\u00a0&lt;\/br&gt;&quot;;\u00a0\u00a0<br\/><br\/>?&gt;\u00a0\u00a0<\/code><\/pre> <\/div>\n<p style=\"text-align: justify;\"><strong>Output<\/strong><\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4511\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/array-datatype-in-php.png\" alt=\"\" width=\"2356\" height=\"526\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/array-datatype-in-php.png 2356w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/array-datatype-in-php-300x67.png 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/array-datatype-in-php-1024x229.png 1024w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/array-datatype-in-php-768x171.png 768w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/array-datatype-in-php-1536x343.png 1536w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/array-datatype-in-php-2048x457.png 2048w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/array-datatype-in-php-390x87.png 390w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/array-datatype-in-php-820x183.png 820w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/array-datatype-in-php-1180x263.png 1180w\" sizes=\"(max-width: 2356px) 100vw, 2356px\" \/><\/p>\n<h3 id=\"object\" style=\"text-align: justify;\"><strong>Object<\/strong><\/h3>\n<ul style=\"text-align: justify;\">\n<li>Objects are the instances of user-defined classes that can store both functions and values.<\/li>\n<li>It must be explicitly declared.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>Sample Code<\/strong><\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">&lt;?php   <br\/>     class bike {  <br\/>          function model() {  <br\/>               $model_name = &quot;Jawa&quot;;  <br\/>               echo &quot;Bike Model: &quot; .$model_name;  <br\/>             }  <br\/>     }  <br\/>     $obj = new bike();  <br\/>     $obj -&gt; model();  <br\/>?&gt;  <\/code><\/pre> <\/div>\n<p style=\"text-align: justify;\"><strong>Output<\/strong><\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4512\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/object-datatype-in-php.png\" alt=\"\" width=\"1188\" height=\"220\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/object-datatype-in-php.png 1188w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/object-datatype-in-php-300x56.png 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/object-datatype-in-php-1024x190.png 1024w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/object-datatype-in-php-768x142.png 768w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/object-datatype-in-php-390x72.png 390w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/object-datatype-in-php-820x152.png 820w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/object-datatype-in-php-1180x219.png 1180w\" sizes=\"(max-width: 1188px) 100vw, 1188px\" \/><\/p>\n<h2 id=\"special-data-type\" style=\"text-align: justify;\">Special Data Type<\/h2>\n<ul style=\"text-align: justify;\">\n<li>Special data types consist of two types, they are Null and resource data type.<\/li>\n<\/ul>\n<h3 id=\"null\" style=\"text-align: justify;\">Null<\/h3>\n<ul style=\"text-align: justify;\">\n<li>Null is a special data type that has only one value is NULL and there is a convention of writing it in capital letters as it is case sensitive.<\/li>\n<li>In special data type NULL defined a variable with no value.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>Sample Code<\/strong><\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">&lt;?php   <br\/>     $nl = NULL;  <br\/>    echo $nl;   \/\/it will not give any output  <br\/>    ?&gt;  <\/code><\/pre> <\/div>\n<p style=\"text-align: justify;\"><strong>Output<\/strong><\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4513\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/null-datatype.png\" alt=\"\" width=\"1418\" height=\"59\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/null-datatype.png 1418w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/null-datatype-300x12.png 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/null-datatype-1024x43.png 1024w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/null-datatype-768x32.png 768w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/null-datatype-390x16.png 390w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/null-datatype-820x34.png 820w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/null-datatype-1180x49.png 1180w\" sizes=\"(max-width: 1418px) 100vw, 1418px\" \/><\/p>\n<h3 id=\"resource\" style=\"text-align: justify;\">Resource:<\/h3>\n<ul style=\"text-align: justify;\">\n<li>In PHP resources are not the exact data type and basically these are used to references to external PHP resources or store some small function calls.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\n","protected":false},"excerpt":{"rendered":"<p>PHP data types are used to hold different types of values or data. There are eight primitive data types which are further categorized into three types, they are: Scalar types Compound types Special types Scalar data types Scalar data types hold only single value and it consists of four data types, they are boolean, integer, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"passster_activate_protection":false,"passster_protect_child_pages":"","passster_protection_type":"password","passster_password":"","passster_activate_overwrite_defaults":"","passster_headline":"","passster_instruction":"","passster_placeholder":"","passster_button":"","passster_id":"","passster_activate_misc_settings":"","passster_redirect_url":"","passster_hide":"no","passster_area_shortcode":"","gtb_hide_title":false,"gtb_wrap_title":false,"gtb_class_title":"","gtb_remove_headerfooter":false,"footnotes":""},"categories":[8182],"tags":[17597,17599,17596,17594,17601,17600,17598,17595],"class_list":["post-4506","post","type-post","status-publish","format-standard","hentry","category-php","tag-datatypes-in-php","tag-null-data-type-in-php","tag-php-5-data-types","tag-php-data-types","tag-php-variable-type-declaration","tag-special-data-types-in-php","tag-types-of-variables-in-php-with-example","tag-understanding-the-php-data-types"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How many data types are there in PHP ? - PHP Data Types<\/title>\n<meta name=\"description\" content=\"How many data types are there in PHP ? - PHP data types are used to hold different types of values or data.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/php\/how-many-data-types-are-there-in-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How many data types are there in PHP ? - PHP Data Types\" \/>\n<meta property=\"og:description\" content=\"How many data types are there in PHP ? - PHP data types are used to hold different types of values or data.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/php\/how-many-data-types-are-there-in-php\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-30T10:49:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/boolean.png\" \/>\n<meta name=\"author\" content=\"webmaster\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webmaster\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/php\/how-many-data-types-are-there-in-php\/\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/php\/how-many-data-types-are-there-in-php\/\",\"name\":\"How many data types are there in PHP ? - PHP Data Types\",\"isPartOf\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/php\/how-many-data-types-are-there-in-php\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/php\/how-many-data-types-are-there-in-php\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/boolean.png\",\"datePublished\":\"2022-07-30T10:49:13+00:00\",\"dateModified\":\"2022-07-30T10:49:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4\"},\"description\":\"How many data types are there in PHP ? - PHP data types are used to hold different types of values or data.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wikitechy.com\/interview-questions\/php\/how-many-data-types-are-there-in-php\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/php\/how-many-data-types-are-there-in-php\/#primaryimage\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/boolean.png\",\"contentUrl\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/boolean.png\",\"width\":2008,\"height\":227},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4\",\"name\":\"webmaster\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"caption\":\"webmaster\"},\"sameAs\":[\"https:\/\/www.wikitechy.com\/interview-questions\"],\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/author\/webmaster\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How many data types are there in PHP ? - PHP Data Types","description":"How many data types are there in PHP ? - PHP data types are used to hold different types of values or data.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wikitechy.com\/interview-questions\/php\/how-many-data-types-are-there-in-php\/","og_locale":"en_US","og_type":"article","og_title":"How many data types are there in PHP ? - PHP Data Types","og_description":"How many data types are there in PHP ? - PHP data types are used to hold different types of values or data.","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/php\/how-many-data-types-are-there-in-php\/","og_site_name":"Wikitechy","article_published_time":"2022-07-30T10:49:13+00:00","og_image":[{"url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/boolean.png"}],"author":"webmaster","twitter_card":"summary_large_image","twitter_misc":{"Written by":"webmaster","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/php\/how-many-data-types-are-there-in-php\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/php\/how-many-data-types-are-there-in-php\/","name":"How many data types are there in PHP ? - PHP Data Types","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/php\/how-many-data-types-are-there-in-php\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/php\/how-many-data-types-are-there-in-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/boolean.png","datePublished":"2022-07-30T10:49:13+00:00","dateModified":"2022-07-30T10:49:13+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4"},"description":"How many data types are there in PHP ? - PHP data types are used to hold different types of values or data.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/php\/how-many-data-types-are-there-in-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/php\/how-many-data-types-are-there-in-php\/#primaryimage","url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/boolean.png","contentUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/07\/boolean.png","width":2008,"height":227},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4","name":"webmaster","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","caption":"webmaster"},"sameAs":["https:\/\/www.wikitechy.com\/interview-questions"],"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/webmaster\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=4506"}],"version-history":[{"count":1,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4506\/revisions"}],"predecessor-version":[{"id":4514,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4506\/revisions\/4514"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=4506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=4506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=4506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}