{"id":78,"date":"2024-07-17T09:09:38","date_gmt":"2024-07-17T09:09:38","guid":{"rendered":"https:\/\/shaplakanon.com\/wdc\/?p=78"},"modified":"2024-07-17T09:09:39","modified_gmt":"2024-07-17T09:09:39","slug":"understanding-php-type-casting","status":"publish","type":"post","link":"https:\/\/shaplakanon.com\/wdc\/understanding-php-type-casting\/","title":{"rendered":"Understanding PHP Type Casting"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Introduction<\/h4>\n\n\n\n<p>Type casting in PHP is a process used to convert a variable from one data type to another. PHP is a loosely typed language, which means that variables do not need to be declared with a type. However, there are instances where you might need to enforce a specific type for a variable to ensure your code functions as expected. This tutorial will guide you through the basics of type casting in PHP, including practical examples to help solidify your understanding.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Why Type Casting is Important<\/h4>\n\n\n\n<p>In PHP, automatic type conversion is common, but sometimes it can lead to unexpected results. For instance, when performing mathematical operations, string concatenations, or comparisons, ensuring the correct data type is crucial. Type casting provides control over these operations, ensuring they behave as intended.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Basic Data Types in PHP<\/h4>\n\n\n\n<p>Before diving into type casting, let&#8217;s briefly review the basic data types in PHP:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Integer<\/strong>: A non-decimal number between -2,147,483,648 and 2,147,483,647.<\/li>\n\n\n\n<li><strong>Float (Double)<\/strong>: A number with a decimal point or in exponential form.<\/li>\n\n\n\n<li><strong>String<\/strong>: A sequence of characters.<\/li>\n\n\n\n<li><strong>Boolean<\/strong>: Represents two possible states: TRUE or FALSE.<\/li>\n\n\n\n<li><strong>Array<\/strong>: A collection of values, which can be indexed or associative.<\/li>\n\n\n\n<li><strong>Object<\/strong>: An instance of a class containing data and functions.<\/li>\n\n\n\n<li><strong>NULL<\/strong>: A variable with no value.<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">Type Casting in PHP<\/h4>\n\n\n\n<p>Type casting in PHP can be done in two ways: automatically by PHP or manually by the programmer. Manual type casting is done using type casting operators. Below are the common type casting operators in PHP:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>(int)<\/strong> or <strong>(integer)<\/strong>: Casts to integer<\/li>\n\n\n\n<li><strong>(bool)<\/strong> or <strong>(boolean)<\/strong>: Casts to boolean<\/li>\n\n\n\n<li><strong>(float)<\/strong>, <strong>(double)<\/strong>, or <strong>(real)<\/strong>: Casts to float<\/li>\n\n\n\n<li><strong>(string)<\/strong>: Casts to string<\/li>\n\n\n\n<li><strong>(array)<\/strong>: Casts to array<\/li>\n\n\n\n<li><strong>(object)<\/strong>: Casts to object<\/li>\n\n\n\n<li><strong>(unset)<\/strong>: Casts to NULL<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Examples of Type Casting<\/h4>\n\n\n\n<p>Let&#8217;s explore each type casting with examples:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Casting to Integer<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$var = \"123.45\";\n$intVar = (int)$var;\necho $intVar; \/\/ Outputs: 123\n?&gt;<\/code><\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>Casting to Float<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$var = \"123.45\";\n$floatVar = (float)$var;\necho $floatVar; \/\/ Outputs: 123.45\n?&gt;<\/code><\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>Casting to String<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$var = 12345;\n$stringVar = (string)$var;\necho $stringVar; \/\/ Outputs: 12345\n?&gt;<\/code><\/pre>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li><strong>Casting to Boolean<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$var = 0;\n$boolVar = (bool)$var;\necho $boolVar; \/\/ Outputs: false (no output)\n?&gt;<\/code><\/pre>\n\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li><strong>Casting to Array<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$var = \"Hello World\";\n$arrayVar = (array)$var;\nprint_r($arrayVar); \/\/ Outputs: Array ( &#91;0] =&gt; Hello World )\n?&gt;<\/code><\/pre>\n\n\n\n<ol start=\"6\" class=\"wp-block-list\">\n<li><strong>Casting to Object<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$var = \"Hello World\";\n$objectVar = (object)$var;\necho $objectVar-&gt;scalar; \/\/ Outputs: Hello World\n?&gt;<\/code><\/pre>\n\n\n\n<ol start=\"7\" class=\"wp-block-list\">\n<li><strong>Casting to NULL<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$var = \"Hello World\";\n$nullVar = (unset)$var;\necho $nullVar; \/\/ Outputs nothing (NULL)\n?&gt;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Practical Use Cases<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Mathematical Operations<\/strong><\/li>\n<\/ol>\n\n\n\n<p>When performing mathematical operations, ensuring variables are of the correct type is essential to avoid errors.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$var1 = \"5\";\n$var2 = 10;\n$sum = (int)$var1 + $var2;\necho $sum; \/\/ Outputs: 15\n?&gt;<\/code><\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>Form Data Processing<\/strong><\/li>\n<\/ol>\n\n\n\n<p>When processing form data, you might need to convert string inputs to appropriate types.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$age = $_POST&#91;'age'];\n$age = (int)$age;\nif ($age &gt;= 18) {\n    echo \"You are eligible.\";\n} else {\n    echo \"You are not eligible.\";\n}\n?&gt;<\/code><\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>Database Queries<\/strong><\/li>\n<\/ol>\n\n\n\n<p>When querying a database, converting data types might be necessary to match the database schema.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$id = $_GET&#91;'id'];\n$id = (int)$id;\n$query = \"SELECT * FROM users WHERE id = $id\";\n?&gt;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Conclusion<\/h4>\n\n\n\n<p>Type casting in PHP is a powerful tool that allows you to control the data types of your variables. This ensures that your code runs smoothly and avoids common pitfalls associated with automatic type conversion. By understanding and utilizing type casting, you can write more robust and reliable PHP applications.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Exercises<\/h4>\n\n\n\n<p>To practice what you&#8217;ve learned, try the following exercises:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Write a PHP script that takes a user&#8217;s input and casts it to an integer, float, and string, then prints the results.<\/li>\n\n\n\n<li>Create a form that accepts a number and checks if it is an integer or a float.<\/li>\n\n\n\n<li>Write a PHP function that accepts an array of mixed data types and returns an array with all values cast to strings.<\/li>\n<\/ol>\n\n\n\n<p>By practicing these exercises, you&#8217;ll gain a deeper understanding of how type casting works in PHP and how to apply it effectively in your projects. Happy coding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Type casting in PHP is a process used to convert a variable from one data type to another. PHP [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[17],"tags":[],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry","category-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Understanding PHP Type Casting - Web Development Course<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/shaplakanon.com\/wdc\/understanding-php-type-casting\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Understanding PHP Type Casting - Web Development Course\" \/>\n<meta property=\"og:description\" content=\"Introduction Type casting in PHP is a process used to convert a variable from one data type to another. PHP [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/shaplakanon.com\/wdc\/understanding-php-type-casting\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Development Course\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-17T09:09:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-17T09:09:39+00:00\" \/>\n<meta name=\"author\" content=\"ShaplaKanon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ShaplaKanon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wdc\\\/understanding-php-type-casting\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wdc\\\/understanding-php-type-casting\\\/\"},\"author\":{\"name\":\"ShaplaKanon\",\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wdc\\\/#\\\/schema\\\/person\\\/f5f224239283c27426dadc2e4cc9a825\"},\"headline\":\"Understanding PHP Type Casting\",\"datePublished\":\"2024-07-17T09:09:38+00:00\",\"dateModified\":\"2024-07-17T09:09:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wdc\\\/understanding-php-type-casting\\\/\"},\"wordCount\":529,\"commentCount\":0,\"articleSection\":[\"PHP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/shaplakanon.com\\\/wdc\\\/understanding-php-type-casting\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wdc\\\/understanding-php-type-casting\\\/\",\"url\":\"https:\\\/\\\/shaplakanon.com\\\/wdc\\\/understanding-php-type-casting\\\/\",\"name\":\"Understanding PHP Type Casting - Web Development Course\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wdc\\\/#website\"},\"datePublished\":\"2024-07-17T09:09:38+00:00\",\"dateModified\":\"2024-07-17T09:09:39+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wdc\\\/#\\\/schema\\\/person\\\/f5f224239283c27426dadc2e4cc9a825\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wdc\\\/understanding-php-type-casting\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/shaplakanon.com\\\/wdc\\\/understanding-php-type-casting\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wdc\\\/understanding-php-type-casting\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/shaplakanon.com\\\/wdc\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Understanding PHP Type Casting\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wdc\\\/#website\",\"url\":\"https:\\\/\\\/shaplakanon.com\\\/wdc\\\/\",\"name\":\"Web Development Course\",\"description\":\"Become a Web Developer from Home\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/shaplakanon.com\\\/wdc\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wdc\\\/#\\\/schema\\\/person\\\/f5f224239283c27426dadc2e4cc9a825\",\"name\":\"ShaplaKanon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ef2c8f93a0558c2047555f674c8746b22988ace93eba9262d198d0a28236ce97?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ef2c8f93a0558c2047555f674c8746b22988ace93eba9262d198d0a28236ce97?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ef2c8f93a0558c2047555f674c8746b22988ace93eba9262d198d0a28236ce97?s=96&d=mm&r=g\",\"caption\":\"ShaplaKanon\"},\"sameAs\":[\"https:\\\/\\\/shaplakanon.com\\\/wdc\\\/\"],\"url\":\"https:\\\/\\\/shaplakanon.com\\\/wdc\\\/author\\\/sabahat\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Understanding PHP Type Casting - Web Development Course","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:\/\/shaplakanon.com\/wdc\/understanding-php-type-casting\/","og_locale":"en_US","og_type":"article","og_title":"Understanding PHP Type Casting - Web Development Course","og_description":"Introduction Type casting in PHP is a process used to convert a variable from one data type to another. PHP [&hellip;]","og_url":"https:\/\/shaplakanon.com\/wdc\/understanding-php-type-casting\/","og_site_name":"Web Development Course","article_published_time":"2024-07-17T09:09:38+00:00","article_modified_time":"2024-07-17T09:09:39+00:00","author":"ShaplaKanon","twitter_card":"summary_large_image","twitter_misc":{"Written by":"ShaplaKanon","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/shaplakanon.com\/wdc\/understanding-php-type-casting\/#article","isPartOf":{"@id":"https:\/\/shaplakanon.com\/wdc\/understanding-php-type-casting\/"},"author":{"name":"ShaplaKanon","@id":"https:\/\/shaplakanon.com\/wdc\/#\/schema\/person\/f5f224239283c27426dadc2e4cc9a825"},"headline":"Understanding PHP Type Casting","datePublished":"2024-07-17T09:09:38+00:00","dateModified":"2024-07-17T09:09:39+00:00","mainEntityOfPage":{"@id":"https:\/\/shaplakanon.com\/wdc\/understanding-php-type-casting\/"},"wordCount":529,"commentCount":0,"articleSection":["PHP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/shaplakanon.com\/wdc\/understanding-php-type-casting\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/shaplakanon.com\/wdc\/understanding-php-type-casting\/","url":"https:\/\/shaplakanon.com\/wdc\/understanding-php-type-casting\/","name":"Understanding PHP Type Casting - Web Development Course","isPartOf":{"@id":"https:\/\/shaplakanon.com\/wdc\/#website"},"datePublished":"2024-07-17T09:09:38+00:00","dateModified":"2024-07-17T09:09:39+00:00","author":{"@id":"https:\/\/shaplakanon.com\/wdc\/#\/schema\/person\/f5f224239283c27426dadc2e4cc9a825"},"breadcrumb":{"@id":"https:\/\/shaplakanon.com\/wdc\/understanding-php-type-casting\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/shaplakanon.com\/wdc\/understanding-php-type-casting\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/shaplakanon.com\/wdc\/understanding-php-type-casting\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/shaplakanon.com\/wdc\/"},{"@type":"ListItem","position":2,"name":"Understanding PHP Type Casting"}]},{"@type":"WebSite","@id":"https:\/\/shaplakanon.com\/wdc\/#website","url":"https:\/\/shaplakanon.com\/wdc\/","name":"Web Development Course","description":"Become a Web Developer from Home","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/shaplakanon.com\/wdc\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/shaplakanon.com\/wdc\/#\/schema\/person\/f5f224239283c27426dadc2e4cc9a825","name":"ShaplaKanon","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ef2c8f93a0558c2047555f674c8746b22988ace93eba9262d198d0a28236ce97?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ef2c8f93a0558c2047555f674c8746b22988ace93eba9262d198d0a28236ce97?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ef2c8f93a0558c2047555f674c8746b22988ace93eba9262d198d0a28236ce97?s=96&d=mm&r=g","caption":"ShaplaKanon"},"sameAs":["https:\/\/shaplakanon.com\/wdc\/"],"url":"https:\/\/shaplakanon.com\/wdc\/author\/sabahat\/"}]}},"_links":{"self":[{"href":"https:\/\/shaplakanon.com\/wdc\/wp-json\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shaplakanon.com\/wdc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shaplakanon.com\/wdc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shaplakanon.com\/wdc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shaplakanon.com\/wdc\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":1,"href":"https:\/\/shaplakanon.com\/wdc\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"predecessor-version":[{"id":79,"href":"https:\/\/shaplakanon.com\/wdc\/wp-json\/wp\/v2\/posts\/78\/revisions\/79"}],"wp:attachment":[{"href":"https:\/\/shaplakanon.com\/wdc\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shaplakanon.com\/wdc\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shaplakanon.com\/wdc\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}