{"id":46,"date":"2021-03-07T14:30:39","date_gmt":"2021-03-07T14:30:39","guid":{"rendered":"https:\/\/phptutorial.net\/?page_id=46"},"modified":"2025-04-09T03:15:46","modified_gmt":"2025-04-09T03:15:46","slug":"php-data-types","status":"publish","type":"page","link":"https:\/\/www.phptutorial.net\/php-tutorial\/php-data-types\/","title":{"rendered":"PHP Data Types"},"content":{"rendered":"\n<p><strong>Summary<\/strong>: in this tutorial, you will learn about PHP data types including scalar types, compound types, and special types.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='introduction-to-php-data-types'>Introduction to PHP data types <a href=\"#introduction-to-php-data-types\" class=\"anchor\" id=\"introduction-to-php-data-types\" title=\"Anchor for Introduction to PHP data types\">#<\/a><\/h2>\n\n\n\n<p>A type specifies the amount of memory allocated to a value associated with it. A type also determines the operations that you can perform on it.<\/p>\n\n\n\n<p>PHP has ten primitive types including four scalar types, four compound types, and two special types:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/phptutorial.net\/wp-content\/uploads\/2021\/03\/PHP-types.svg\" alt=\"PHP Types\" class=\"wp-image-809\"\/><\/figure>\n<\/div>\n\n\n<p><strong>Scalar types<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/phptutorial.net\/php-tutorial\/php-boolean\/\">bool<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/phptutorial.net\/php-tutorial\/php-int\/\">int<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/phptutorial.net\/php-tutorial\/php-float\/\">float<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/phptutorial.net\/php-tutorial\/php-string\/\">string<\/a><\/li>\n<\/ul>\n\n\n\n<p><strong>Compound types<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/phptutorial.net\/php-tutorial\/php-array\/\">array<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/phptutorial.net\/php-oop\/php-objects\/\">object<\/a><\/li>\n\n\n\n<li>callable<\/li>\n\n\n\n<li>iterable<\/li>\n<\/ul>\n\n\n\n<p><strong>Special types<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/phptutorial.net\/php-tutorial\/php-data-types\/#resource\">resource<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/phptutorial.net\/php-tutorial\/php-null\/\">null<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id='scalar-types'>Scalar types <a href=\"#scalar-types\" class=\"anchor\" id=\"scalar-types\" title=\"Anchor for Scalar types\">#<\/a><\/h2>\n\n\n\n<p>A variable is a scalar when it holds a single value of the type integer, float, string, or boolean.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='integer'>Integer <a href=\"#integer\" class=\"anchor\" id=\"integer\" title=\"Anchor for Integer\">#<\/a><\/h3>\n\n\n\n<p>Integers are whole numbers defined in the set {\u2026-3,-2-,-1,0,1,2,3\u2026}.&nbsp; The size of the integer depends on the platform where PHP runs.<\/p>\n\n\n\n<p>The constant <code>PHP_INT_SIZE<\/code>&nbsp;specifies&nbsp;the size of the integer on a specific platform. PHP uses the int keyword to denote the integer type.<\/p>\n\n\n\n<p>The following example illustrates some integers:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-meta\">&lt;?php<\/span>\n\n$count = <span class=\"hljs-number\">0<\/span>;\n$max = <span class=\"hljs-number\">1000<\/span>;\n$page_size = <span class=\"hljs-number\">10<\/span>;\n\n<span class=\"hljs-keyword\">echo<\/span> $count . <span class=\"hljs-string\">'&lt;br&gt;'<\/span>;\n<span class=\"hljs-keyword\">echo<\/span> $max . <span class=\"hljs-string\">'&lt;br&gt;'<\/span>;\n<span class=\"hljs-keyword\">echo<\/span> $page_size  . <span class=\"hljs-string\">'&lt;br&gt;'<\/span>;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p><a href=\"https:\/\/phptutorial.net\/playground\/?q=PD9waHAKCiRjb3VudCA9IDA7CiRtYXggPSAxMDAwOwokcGFnZV9zaXplID0gMTA7CgplY2hvICRjb3VudCAuICc8YnI-JzsKZWNobyAkbWF4IC4gJzxicj4nOwplY2hvICRwYWdlX3NpemUgIC4gJzxicj4nOw\" target=\"_blank\" rel=\"noreferrer noopener\">Try it<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='float'>Float <a href=\"#float\" class=\"anchor\" id=\"float\" title=\"Anchor for Float\">#<\/a><\/h3>\n\n\n\n<p>Floats are floating-point numbers, which are also known as floats, doubles, or real numbers.<\/p>\n\n\n\n<p>PHP uses the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Double-precision_floating-point_format\" target=\"_blank\" rel=\"noreferrer noopener\">IEEE 754 double format<\/a> to represent floats, which, like other programming languages, have limited precision.<\/p>\n\n\n\n<p>PHP uses the <code>float<\/code> keyword to represent the floating-point numbers. The following example illustrates the floating-point numbers in PHP:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-meta\">&lt;?php<\/span>\n\n$price = <span class=\"hljs-number\">10.25<\/span>;\n$tax = <span class=\"hljs-number\">0.08<\/span>;\n\n<span class=\"hljs-keyword\">echo<\/span> $price * (<span class=\"hljs-number\">1<\/span>  + $tax);<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p><a href=\"https:\/\/phptutorial.net\/playground\/?q=PD9waHAKCiRwcmljZSA9IDEwLjI1OwokdGF4ID0gMC4wODsKCmVjaG8gJHByaWNlICogKDEgICsgJHRheCk7\" target=\"_blank\" rel=\"noreferrer noopener\">Try it<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='boolean'>Boolean <a href=\"#boolean\" class=\"anchor\" id=\"boolean\" title=\"Anchor for Boolean\">#<\/a><\/h3>\n\n\n\n<p>Boolean represents a truth value that can be either <code>true<\/code> or <code>false<\/code>. PHP uses the <code>bool<\/code> keyword to represent the Boolean type.<\/p>\n\n\n\n<p>The bool type has two values <code>true<\/code> and <code>false<\/code>. Since keywords are case-insensitive, you can use <code>true<\/code>, <code>True<\/code>, <code>TRUE<\/code>, <code>false<\/code>, <code>False<\/code>, and <code>False<\/code> to indicate boolean values.<\/p>\n\n\n\n<p>The following example shows how to assign Boolean values to variables:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-meta\">&lt;?php<\/span>\n\n$is_admin = <span class=\"hljs-keyword\">true<\/span>;\n$is_user_logged_in = <span class=\"hljs-keyword\">false<\/span>;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>When you use the values of other types in the boolean context, such as <a href=\"https:\/\/phptutorial.net\/php-tutorial\/php-if\/\">if-else<\/a> and <a href=\"https:\/\/phptutorial.net\/php-tutorial\/php-switch\/\">switch-case<\/a> statements, PHP converts them to the boolean values.<\/p>\n\n\n\n<p>PHP treats the following values as <code>false<\/code>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <code>false<\/code> keyword.<\/li>\n\n\n\n<li>The integer&nbsp;0 and -0 (zero).<\/li>\n\n\n\n<li>The&nbsp;floats 0.0 and -0.0 (zero).<\/li>\n\n\n\n<li>The empty&nbsp;string (<code>\"\"<\/code>, <code>''<\/code>) and the&nbsp;string&nbsp;&#8220;0&#8221;.<\/li>\n\n\n\n<li>The empty array&nbsp;(<code>array()<\/code> or <code>[]<\/code>).<\/li>\n\n\n\n<li>The <code>null<\/code>.<\/li>\n\n\n\n<li>The <code>SimpleXML<\/code>&nbsp;objects created from attributeless empty elements.<\/li>\n<\/ul>\n\n\n\n<p>The values that are not one of these falsy values above are <code>true<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='string'>String <a href=\"#string\" class=\"anchor\" id=\"string\" title=\"Anchor for String\">#<\/a><\/h3>\n\n\n\n<p>A string is a sequence of characters surrounded by single quotes (&#8216;) or double quotes (&#8220;). For example:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-meta\">&lt;?php<\/span>\n\n$str = <span class=\"hljs-string\">'PHP scalar type'<\/span>;\n<span class=\"hljs-keyword\">echo<\/span> $str;\n\n$message = <span class=\"hljs-string\">\"PHP data types\"<\/span>;\n<span class=\"hljs-keyword\">echo<\/span> $message;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\" id='compound-types'>Compound types <a href=\"#compound-types\" class=\"anchor\" id=\"compound-types\" title=\"Anchor for Compound types\">#<\/a><\/h2>\n\n\n\n<p>Compound data includes values that contain more than one value. PHP has two compound types, array and object.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='array'>Array <a href=\"#array\" class=\"anchor\" id=\"array\" title=\"Anchor for Array\">#<\/a><\/h3>\n\n\n\n<p>An array is an ordered map that associates keys with values. For example, you can define a list of items in a shopping cart like this:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-meta\">&lt;?php<\/span>\n\n$carts = &#91; <span class=\"hljs-string\">'laptop'<\/span>, <span class=\"hljs-string\">'mouse'<\/span>, <span class=\"hljs-string\">'keyboard'<\/span> ];<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>The <code>$carts<\/code> array contains three string values. It maps the index <code>0<\/code>, <code>1<\/code>, and <code>2<\/code> to the values <code>'laptop'<\/code>, <code>'mouse'<\/code>, and <code>'keyboard'<\/code>. The <code>$carts<\/code> is called an <a href=\"https:\/\/phptutorial.net\/php-tutorial\/php-array\/\">indexed array<\/a> because it uses numeric indexes as keys.<\/p>\n\n\n\n<p>To access a value in an array, you use the square brackets:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-meta\">&lt;?php<\/span>\n\n$carts = &#91; <span class=\"hljs-string\">'laptop'<\/span>, <span class=\"hljs-string\">'mouse'<\/span>, <span class=\"hljs-string\">'keyboard'<\/span> ];\n\n<span class=\"hljs-keyword\">echo<\/span> $carts&#91;<span class=\"hljs-number\">0<\/span>] .<span class=\"hljs-string\">'&lt;br&gt;'<\/span>; <span class=\"hljs-comment\">\/\/ 'laptop'<\/span>\n<span class=\"hljs-keyword\">echo<\/span> $carts&#91;<span class=\"hljs-number\">1<\/span>] .<span class=\"hljs-string\">'&lt;br&gt;'<\/span>; <span class=\"hljs-comment\">\/\/ 'mouse'<\/span>\n<span class=\"hljs-keyword\">echo<\/span> $carts&#91;<span class=\"hljs-number\">2<\/span>] .<span class=\"hljs-string\">'&lt;br&gt;'<\/span>; <span class=\"hljs-comment\">\/\/ 'keyboard'<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p><a href=\"https:\/\/phptutorial.net\/playground\/?q=PD9waHAKCiRjYXJ0cyA9IFsgJ2xhcHRvcCcsICdtb3VzZScsICdrZXlib2FyZCcgXTsKCmVjaG8gJGNhcnRzWzBdIC4nPGJyPic7IC8vICdsYXB0b3AnCmVjaG8gJGNhcnRzWzFdIC4nPGJyPic7IC8vICdtb3VzZScKZWNobyAkY2FydHNbMl0gLic8YnI-JzsgLy8gJ2tleWJvYXJkJw\" target=\"_blank\" rel=\"noreferrer noopener\">Try it<\/a><\/p>\n\n\n\n<p>Besides numeric indexes, you can use strings as keys for the array elements. These arrays are known as <a href=\"https:\/\/phptutorial.net\/php-tutorial\/php-associative-arrays\/\">associative arrays<\/a>. For example:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-meta\">&lt;?php<\/span>\n\n$prices = &#91;\n   <span class=\"hljs-string\">'laptop'<\/span> =&gt; <span class=\"hljs-number\">1000<\/span>,\n   <span class=\"hljs-string\">'mouse'<\/span> =&gt; <span class=\"hljs-number\">50<\/span>,\n   <span class=\"hljs-string\">'keyboard'<\/span> =&gt; <span class=\"hljs-number\">120<\/span>\n];<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>To access an element in an associative array, you specify the key in the square brackets. For example:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-8\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-meta\">&lt;?php<\/span>\n\n$prices = &#91;\n   <span class=\"hljs-string\">'laptop'<\/span> =&gt; <span class=\"hljs-number\">1000<\/span>,\n   <span class=\"hljs-string\">'mouse'<\/span> =&gt; <span class=\"hljs-number\">50<\/span>,\n   <span class=\"hljs-string\">'keyboard'<\/span> =&gt; <span class=\"hljs-number\">120<\/span>\n];\n\n<span class=\"hljs-keyword\">echo<\/span> $prices&#91;<span class=\"hljs-string\">'laptop'<\/span>] . <span class=\"hljs-string\">'&lt;br&gt;'<\/span>; <span class=\"hljs-comment\">\/\/ 1000<\/span>\n<span class=\"hljs-keyword\">echo<\/span> $prices&#91;<span class=\"hljs-string\">'mouse'<\/span>] . <span class=\"hljs-string\">'&lt;br&gt;'<\/span>; <span class=\"hljs-comment\">\/\/ 50<\/span>\n<span class=\"hljs-keyword\">echo<\/span> $prices&#91;<span class=\"hljs-string\">'keyboard'<\/span>] . <span class=\"hljs-string\">'&lt;br&gt;'<\/span>; <span class=\"hljs-comment\">\/\/ 120<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p><a href=\"https:\/\/phptutorial.net\/playground\/?q=PD9waHAKCiRwcmljZXMgPSBbCiAgICdsYXB0b3AnID0-IDEwMDAsCiAgICdtb3VzZScgPT4gNTAsCiAgICdrZXlib2FyZCcgPT4gMTIwCl07CgplY2hvICRwcmljZXNbJ2xhcHRvcCddIC4gJzxicj4nOyAvLyAxMDAwCmVjaG8gJHByaWNlc1snbW91c2UnXSAuICc8YnI-JzsgLy8gNTAKZWNobyAkcHJpY2VzWydrZXlib2FyZCddIC4gJzxicj4nOyAvLyAxMjA\" target=\"_blank\" rel=\"noreferrer noopener\">Try it<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='object'>Object <a href=\"#object\" class=\"anchor\" id=\"object\" title=\"Anchor for Object\">#<\/a><\/h3>\n\n\n\n<p>An object is an instance of a class. It&#8217;s a central concept in <a href=\"https:\/\/phptutorial.net\/php-oop\/\">object-oriented programming<\/a>.<\/p>\n\n\n\n<p>An object has properties. For example, a person object may have a first name, last name, and age properties.<\/p>\n\n\n\n<p>An object also has behaviors, which are known as methods. For example, a person object can have a method called <code>getFullName()<\/code> that returns the full name.<\/p>\n\n\n\n<p>To learn more about objects, check out the <a href=\"https:\/\/phptutorial.net\/php-oop\/php-objects\/\">object tutorial<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='special-types'>Special types <a href=\"#special-types\" class=\"anchor\" id=\"special-types\" title=\"Anchor for Special types\">#<\/a><\/h2>\n\n\n\n<p>PHP has two special types: null and resource<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='null'>Null <a href=\"#null\" class=\"anchor\" id=\"null\" title=\"Anchor for Null\">#<\/a><\/h3>\n\n\n\n<p>The <code>null<\/code> type has one value called <a href=\"https:\/\/phptutorial.net\/php-tutorial\/php-null\/\">null<\/a> that represents a variable with no value.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='resource'>Resource <a href=\"#resource\" class=\"anchor\" id=\"resource\" title=\"Anchor for Resource\">#<\/a><\/h3>\n\n\n\n<p>A resource is a special variable that <strong>references<\/strong> to an external resource such as: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A file<\/li>\n\n\n\n<li>A <a href=\"https:\/\/phptutorial.net\/php-pdo\/php-pdo-transaction\/\">database connection<\/a><\/li>\n\n\n\n<li>A network connection<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"448\" height=\"266\" src=\"https:\/\/phptutorial.net\/wp-content\/uploads\/2025\/04\/php-resources.png\" alt=\"php resources\" class=\"wp-image-3332\" srcset=\"https:\/\/www.phptutorial.net\/wp-content\/uploads\/2025\/04\/php-resources.png 448w, https:\/\/www.phptutorial.net\/wp-content\/uploads\/2025\/04\/php-resources-300x178.png 300w\" sizes=\"auto, (max-width: 448px) 100vw, 448px\" \/><\/figure>\n\n\n\n<p>A resource is not actual data like a string or number. Instead, it&#8217;s a <strong>reference<\/strong> to something outside of PHP. PHP uses resources to manage things outside of PHP efficiently by automatically free it when it is no longer in use.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='summary'>Summary <a href=\"#summary\" class=\"anchor\" id=\"summary\" title=\"Anchor for Summary\">#<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>PHP has four scalar types, four compound types, and two special types.<\/li>\n\n\n\n<li>Scale types: integer, float, string, and boolean.<\/li>\n\n\n\n<li>Compound types: array and object.<\/li>\n\n\n\n<li>Special types: null and resource.<\/li>\n<\/ul>\n<div class=\"helpful-block-content\" data-title=\"\">\n\t<header>\n\t\t<div class=\"wth-question\">Did you find this tutorial useful?<\/div>\n\t\t<div class=\"wth-thumbs\">\n\t\t\t<button\n\t\t\t\tdata-post=\"46\"\n\t\t\t\tdata-post-url=\"https:\/\/www.phptutorial.net\/php-tutorial\/php-data-types\/\"\n\t\t\t\tdata-post-title=\"PHP Data Types\"\n\t\t\t\tdata-response=\"1\"\n\t\t\t\tclass=\"wth-btn-rounded wth-yes-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tclass=\"feather feather-thumbs-up block w-full h-full\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> Yes <\/span>\n\t\t\t<\/button>\n\n\t\t\t<button\n\t\t\t\tdata-response=\"0\"\n\t\t\t\tdata-post=\"46\"\n\t\t\t\tdata-post-url=\"https:\/\/www.phptutorial.net\/php-tutorial\/php-data-types\/\"\n\t\t\t\tdata-post-title=\"PHP Data Types\"\n\t\t\t\tclass=\"wth-btn-rounded wth-no-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> No <\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t<\/header>\n\n\t<div class=\"wth-form hidden\">\n\t\t<div class=\"wth-form-wrapper\">\n\t\t\t<div class=\"wth-title\"><\/div>\n\t\t\t\n\t\t\t<textarea class=\"wth-message\"><\/textarea>\n\n\t\t\t<button class=\"btn btn-primary wth-btn-submit\">Send<\/button>\n\t\t\t<button class=\"btn wth-btn-cancel\">Cancel<\/button>\n\t\t\n\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>in this tutorial, you will learn about PHP data types including scalar types, compound types, and special types.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":15,"menu_order":8,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-46","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.phptutorial.net\/wp-json\/wp\/v2\/pages\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.phptutorial.net\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.phptutorial.net\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.phptutorial.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.phptutorial.net\/wp-json\/wp\/v2\/comments?post=46"}],"version-history":[{"count":5,"href":"https:\/\/www.phptutorial.net\/wp-json\/wp\/v2\/pages\/46\/revisions"}],"predecessor-version":[{"id":3335,"href":"https:\/\/www.phptutorial.net\/wp-json\/wp\/v2\/pages\/46\/revisions\/3335"}],"up":[{"embeddable":true,"href":"https:\/\/www.phptutorial.net\/wp-json\/wp\/v2\/pages\/15"}],"wp:attachment":[{"href":"https:\/\/www.phptutorial.net\/wp-json\/wp\/v2\/media?parent=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}