{"id":56,"date":"2020-12-10T12:59:15","date_gmt":"2020-12-10T12:59:15","guid":{"rendered":"https:\/\/www.kindsonthegenius.com\/php\/?p=56"},"modified":"2026-10-29T01:27:51","modified_gmt":"2026-10-29T01:27:51","slug":"php-conditional-statement","status":"publish","type":"post","link":"https:\/\/kindsonthegenius.com\/php\/php-conditional-statement\/","title":{"rendered":"PHP &#8211; Conditional Statement"},"content":{"rendered":"<p>In this tutorial, we would learn about Conditional Statements in PHP. These are statements that allow you to make decisions based on certain conditions.\u00a0 The figure below illustrates how conditional statements work.<\/p>\n<figure id=\"attachment_57\" aria-describedby=\"caption-attachment-57\" style=\"width: 235px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/kindsonthegenius.com\/php\/wp-content\/uploads\/2020\/12\/Loops-in-PHP.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-57\" src=\"https:\/\/kindsonthegenius.com\/php\/wp-content\/uploads\/2020\/12\/Loops-in-PHP.jpg\" alt=\"Loops in PHP\" width=\"235\" height=\"269\" \/><\/a><figcaption id=\"caption-attachment-57\" class=\"wp-caption-text\">Loops in PHP<\/figcaption><\/figure>\n<p>There are three types of conditional statements we would cover in this tutorial:<\/p>\n<ol>\n<li><a href=\"#t1\">if&#8230;else statement<\/a><\/li>\n<li><a href=\"#t2\">elseif statement<\/a><\/li>\n<li><a href=\"#t3\">switch statement<\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t1\">1. The if&#8230;else Statement<\/strong><\/h4>\n<p>The if&#8230;else statement is used if you want to execute some piece of code based on a statement being true. So if the statement evaluates true, then execute the code, otherwise execute another code. The syntax is<\/p>\n<pre style=\"margin: 0; line-height: 125%;\">if (condition)\r\n   code to execute if condition is true;\r\nelse\r\n   code to execute if condition is false;\r\n<\/pre>\n<p>Example<\/p>\n<p>The example below shows how to use the if&#8230;else statement. When the code executes, it will display &#8220;Take an umbrella&#8221;if the weather is rainy. Otherwise it would display &#8220;Have a great day!&#8221;<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #007700;\">&lt;html&gt;<\/span>\r\n   <span style=\"color: #007700;\">&lt;body&gt;<\/span>\r\n   \r\n      <span style=\"color: #557799;\">&lt;?php<\/span>\r\n         <span style=\"color: #996633;\">$weather<\/span> <span style=\"color: #333333;\">=<\/span> <span style=\"background-color: #fff0f0;\">\"rainy\"<\/span>;\r\n         \r\n         <span style=\"color: #008800; font-weight: bold;\">if<\/span> (<span style=\"color: #996633;\">$weather<\/span> <span style=\"color: #333333;\">==<\/span> <span style=\"background-color: #fff0f0;\">\"rainy\"<\/span>)\r\n            <span style=\"color: #008800; font-weight: bold;\">echo<\/span> <span style=\"background-color: #fff0f0;\">\"Take an umbrella\"<\/span>; \r\n         \r\n         <span style=\"color: #008800; font-weight: bold;\">else<\/span>\r\n            <span style=\"color: #008800; font-weight: bold;\">echo<\/span> <span style=\"background-color: #fff0f0;\">\"Have a great day!\"<\/span>; \r\n      <span style=\"color: #557799;\">?&gt;<\/span>\r\n   \r\n   <span style=\"color: #007700;\">&lt;\/body&gt;<\/span>\r\n<span style=\"color: #007700;\">&lt;\/html&gt;<\/span>\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t2\">2. The elseif statement<\/strong><\/h4>\n<p>This is similar to the if&#8230;else statement. However, in this case, we would have could have multiple conditions. The code that corresponds to the condition that evaluates true is executed.<\/p>\n<p>In the example below, the current day would be evaluated, if it is Friday, the\u00a0 &#8220;Have a good weekend&#8221; is displayed. If it is Sunday, it outputs &#8220;Enjoy your Sunday, dear!&#8221; else it outputs &#8220;Have a great day&#8221;<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #007700;\">&lt;html&gt;<\/span>\r\n   <span style=\"color: #007700;\">&lt;body&gt;<\/span>  \r\n      <span style=\"color: #557799;\">&lt;?php<\/span>\r\n         <span style=\"color: #996633;\">$day<\/span> <span style=\"color: #333333;\">=<\/span> <span style=\"color: #007020;\">date<\/span>(<span style=\"background-color: #fff0f0;\">\"D\"<\/span>);\r\n         \r\n         <span style=\"color: #008800; font-weight: bold;\">if<\/span> (<span style=\"color: #996633;\">$day<\/span> <span style=\"color: #333333;\">==<\/span> <span style=\"background-color: #fff0f0;\">\"Fri\"<\/span>)\r\n            <span style=\"color: #008800; font-weight: bold;\">echo<\/span> <span style=\"background-color: #fff0f0;\">\"Have a great weekend!\"<\/span>;\r\n         \r\n         <span style=\"color: #008800; font-weight: bold;\">elseif<\/span> (<span style=\"color: #996633;\">$day<\/span> <span style=\"color: #333333;\">==<\/span> <span style=\"background-color: #fff0f0;\">\"Sun\"<\/span>)\r\n            <span style=\"color: #008800; font-weight: bold;\">echo<\/span> <span style=\"background-color: #fff0f0;\">\"Enjoy your Sunday!\"<\/span>; \r\n         \r\n         <span style=\"color: #008800; font-weight: bold;\">else<\/span>\r\n            <span style=\"color: #008800; font-weight: bold;\">echo<\/span> <span style=\"background-color: #fff0f0;\">\"Have a great day!\"<\/span>; \r\n      <span style=\"color: #557799;\">?&gt;<\/span>     \r\n   <span style=\"color: #007700;\">&lt;\/body&gt;<\/span>\r\n<span style=\"color: #007700;\">&lt;\/html&gt;<\/span>\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t3\">3. The switch statement<\/strong><\/h4>\n<p>The switch statement allows us to select one of multiple blocks of code to be executed. It is used instead of long blocks of if&#8230;else code. The code below examines<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #007700;\">&lt;html&gt;<\/span>\r\n   <span style=\"color: #007700;\">&lt;body&gt;<\/span>  \r\n      <span style=\"color: #557799;\">&lt;?php<\/span>\r\n        <span style=\"color: #996633;\">$grade<\/span> <span style=\"color: #333333;\">=<\/span> <span style=\"background-color: #fff0f0;\">\"A\"<\/span>;\r\n        <span style=\"color: #008800; font-weight: bold;\">switch<\/span>(<span style=\"color: #996633;\">$grade<\/span>){\r\n            <span style=\"color: #008800; font-weight: bold;\">case<\/span> <span style=\"background-color: #fff0f0;\">\"A\"<\/span><span style=\"color: #333333;\">:<\/span>\r\n                <span style=\"color: #008800; font-weight: bold;\">echo<\/span> <span style=\"background-color: #fff0f0;\">\"Excellent grade\"<\/span>;\r\n            <span style=\"color: #008800; font-weight: bold;\">break<\/span>;\r\n            <span style=\"color: #008800; font-weight: bold;\">case<\/span> <span style=\"background-color: #fff0f0;\">\"B\"<\/span><span style=\"color: #333333;\">:<\/span>\r\n                <span style=\"color: #008800; font-weight: bold;\">echo<\/span> <span style=\"background-color: #fff0f0;\">\"Very good grade\"<\/span>;\r\n            <span style=\"color: #008800; font-weight: bold;\">break<\/span>;\r\n            <span style=\"color: #008800; font-weight: bold;\">case<\/span> <span style=\"background-color: #fff0f0;\">\"C\"<\/span><span style=\"color: #333333;\">:<\/span>\r\n                <span style=\"color: #008800; font-weight: bold;\">echo<\/span> <span style=\"background-color: #fff0f0;\">\"Good\"<\/span>;\r\n            <span style=\"color: #008800; font-weight: bold;\">break<\/span>;\r\n            <span style=\"color: #008800; font-weight: bold;\">case<\/span> <span style=\"background-color: #fff0f0;\">\"D\"<\/span><span style=\"color: #333333;\">:<\/span>\r\n                <span style=\"color: #008800; font-weight: bold;\">echo<\/span> <span style=\"background-color: #fff0f0;\">\"You Passed\"<\/span>;\r\n            <span style=\"color: #008800; font-weight: bold;\">break<\/span>;\r\n            <span style=\"color: #008800; font-weight: bold;\">default<\/span><span style=\"color: #333333;\">:<\/span>\r\n            <span style=\"color: #008800; font-weight: bold;\">echo<\/span> <span style=\"background-color: #fff0f0;\">\"So far so good\"<\/span>;\r\n        }\r\n      <span style=\"color: #557799;\">?&gt;<\/span>     \r\n   <span style=\"color: #007700;\">&lt;\/body&gt;<\/span>\r\n<span style=\"color: #007700;\">&lt;\/html&gt;<\/span>\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we would learn about Conditional Statements in PHP. These are statements that allow you to make decisions based on certain conditions.\u00a0 The &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-56","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PHP - Conditional Statement | Kindson The Genius<\/title>\n<meta name=\"description\" content=\"PHP - Conditional Statement \u2014 free PHP tutorial by Kindson Munonye with clear examples. Step-by-step for beginners. Part of Kindson The Genius.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kindsonthegenius.com\/php\/php-conditional-statement\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP - Conditional Statement | Kindson The Genius\" \/>\n<meta property=\"og:description\" content=\"PHP - Conditional Statement \u2014 free PHP tutorial by Kindson Munonye with clear examples. Step-by-step for beginners. Part of Kindson The Genius.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kindsonthegenius.com\/php\/php-conditional-statement\/\" \/>\n<meta property=\"og:site_name\" content=\"PHP Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-10T12:59:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-29T01:27:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kindsonthegenius.com\/php\/wp-content\/uploads\/2020\/12\/Loops-in-PHP.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"235\" \/>\n\t<meta property=\"og:image:height\" content=\"269\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"kindsonthegenius\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"kindsonthegenius\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/php-conditional-statement\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/php-conditional-statement\\\/\"},\"author\":{\"name\":\"kindsonthegenius\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/#\\\/schema\\\/person\\\/a2dcea4c76668e90e5842583fd5a5f60\"},\"headline\":\"PHP &#8211; Conditional Statement\",\"datePublished\":\"2020-12-10T12:59:15+00:00\",\"dateModified\":\"2026-10-29T01:27:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/php-conditional-statement\\\/\"},\"wordCount\":254,\"image\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/php-conditional-statement\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/Loops-in-PHP.jpg\",\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/php-conditional-statement\\\/\",\"url\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/php-conditional-statement\\\/\",\"name\":\"PHP - Conditional Statement | Kindson The Genius\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/php-conditional-statement\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/php-conditional-statement\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/Loops-in-PHP.jpg\",\"datePublished\":\"2020-12-10T12:59:15+00:00\",\"dateModified\":\"2026-10-29T01:27:51+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/#\\\/schema\\\/person\\\/a2dcea4c76668e90e5842583fd5a5f60\"},\"description\":\"PHP - Conditional Statement \u2014 free PHP tutorial by Kindson Munonye with clear examples. Step-by-step for beginners. Part of Kindson The Genius.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/php-conditional-statement\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/php-conditional-statement\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/php-conditional-statement\\\/#primaryimage\",\"url\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/Loops-in-PHP.jpg\",\"contentUrl\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/Loops-in-PHP.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/php-conditional-statement\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP &#8211; Conditional Statement\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/#website\",\"url\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/\",\"name\":\"PHP Tutorial\",\"description\":\"Beginner to Expert With Practicals\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/#\\\/schema\\\/person\\\/a2dcea4c76668e90e5842583fd5a5f60\",\"name\":\"kindsonthegenius\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g\",\"caption\":\"kindsonthegenius\"},\"url\":\"https:\\\/\\\/kindsonthegenius.com\\\/php\\\/author\\\/kindsonthegenius-3\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP - Conditional Statement | Kindson The Genius","description":"PHP - Conditional Statement \u2014 free PHP tutorial by Kindson Munonye with clear examples. Step-by-step for beginners. Part of Kindson The Genius.","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:\/\/kindsonthegenius.com\/php\/php-conditional-statement\/","og_locale":"en_US","og_type":"article","og_title":"PHP - Conditional Statement | Kindson The Genius","og_description":"PHP - Conditional Statement \u2014 free PHP tutorial by Kindson Munonye with clear examples. Step-by-step for beginners. Part of Kindson The Genius.","og_url":"https:\/\/kindsonthegenius.com\/php\/php-conditional-statement\/","og_site_name":"PHP Tutorial","article_published_time":"2020-12-10T12:59:15+00:00","article_modified_time":"2026-10-29T01:27:51+00:00","og_image":[{"width":235,"height":269,"url":"https:\/\/kindsonthegenius.com\/php\/wp-content\/uploads\/2020\/12\/Loops-in-PHP.jpg","type":"image\/jpeg"}],"author":"kindsonthegenius","twitter_card":"summary_large_image","twitter_misc":{"Written by":"kindsonthegenius","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kindsonthegenius.com\/php\/php-conditional-statement\/#article","isPartOf":{"@id":"https:\/\/kindsonthegenius.com\/php\/php-conditional-statement\/"},"author":{"name":"kindsonthegenius","@id":"https:\/\/kindsonthegenius.com\/php\/#\/schema\/person\/a2dcea4c76668e90e5842583fd5a5f60"},"headline":"PHP &#8211; Conditional Statement","datePublished":"2020-12-10T12:59:15+00:00","dateModified":"2026-10-29T01:27:51+00:00","mainEntityOfPage":{"@id":"https:\/\/kindsonthegenius.com\/php\/php-conditional-statement\/"},"wordCount":254,"image":{"@id":"https:\/\/kindsonthegenius.com\/php\/php-conditional-statement\/#primaryimage"},"thumbnailUrl":"https:\/\/kindsonthegenius.com\/php\/wp-content\/uploads\/2020\/12\/Loops-in-PHP.jpg","inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/kindsonthegenius.com\/php\/php-conditional-statement\/","url":"https:\/\/kindsonthegenius.com\/php\/php-conditional-statement\/","name":"PHP - Conditional Statement | Kindson The Genius","isPartOf":{"@id":"https:\/\/kindsonthegenius.com\/php\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kindsonthegenius.com\/php\/php-conditional-statement\/#primaryimage"},"image":{"@id":"https:\/\/kindsonthegenius.com\/php\/php-conditional-statement\/#primaryimage"},"thumbnailUrl":"https:\/\/kindsonthegenius.com\/php\/wp-content\/uploads\/2020\/12\/Loops-in-PHP.jpg","datePublished":"2020-12-10T12:59:15+00:00","dateModified":"2026-10-29T01:27:51+00:00","author":{"@id":"https:\/\/kindsonthegenius.com\/php\/#\/schema\/person\/a2dcea4c76668e90e5842583fd5a5f60"},"description":"PHP - Conditional Statement \u2014 free PHP tutorial by Kindson Munonye with clear examples. Step-by-step for beginners. Part of Kindson The Genius.","breadcrumb":{"@id":"https:\/\/kindsonthegenius.com\/php\/php-conditional-statement\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kindsonthegenius.com\/php\/php-conditional-statement\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kindsonthegenius.com\/php\/php-conditional-statement\/#primaryimage","url":"https:\/\/kindsonthegenius.com\/php\/wp-content\/uploads\/2020\/12\/Loops-in-PHP.jpg","contentUrl":"https:\/\/kindsonthegenius.com\/php\/wp-content\/uploads\/2020\/12\/Loops-in-PHP.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/kindsonthegenius.com\/php\/php-conditional-statement\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kindsonthegenius.com\/php\/"},{"@type":"ListItem","position":2,"name":"PHP &#8211; Conditional Statement"}]},{"@type":"WebSite","@id":"https:\/\/kindsonthegenius.com\/php\/#website","url":"https:\/\/kindsonthegenius.com\/php\/","name":"PHP Tutorial","description":"Beginner to Expert With Practicals","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kindsonthegenius.com\/php\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/kindsonthegenius.com\/php\/#\/schema\/person\/a2dcea4c76668e90e5842583fd5a5f60","name":"kindsonthegenius","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g","caption":"kindsonthegenius"},"url":"https:\/\/kindsonthegenius.com\/php\/author\/kindsonthegenius-3\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/kindsonthegenius.com\/php\/wp-json\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kindsonthegenius.com\/php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kindsonthegenius.com\/php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/php\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":1,"href":"https:\/\/kindsonthegenius.com\/php\/wp-json\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":58,"href":"https:\/\/kindsonthegenius.com\/php\/wp-json\/wp\/v2\/posts\/56\/revisions\/58"}],"wp:attachment":[{"href":"https:\/\/kindsonthegenius.com\/php\/wp-json\/wp\/v2\/media?parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/php\/wp-json\/wp\/v2\/categories?post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/php\/wp-json\/wp\/v2\/tags?post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}