{"id":235211,"date":"2020-02-28T12:02:51","date_gmt":"2020-02-28T12:02:51","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=235211"},"modified":"2020-02-28T13:23:27","modified_gmt":"2020-02-28T13:23:27","slug":"exception-handling-in-php","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/exception-handling-in-php\/","title":{"rendered":"Exception Handling in PHP"},"content":{"rendered":"\n<p>First of all, we need to understand what is the exception and how we can encounter it. The exceptions are uncaught errors. The errors that can terminate the complete work must be caught before it messes up the complete project.<\/p>\n\n\n\n<p>PHP has two built-in Exceptions, that can catch the errors generated in the Try block only if we have implemented the Exception Handling correctly.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Exception<\/strong><\/li><li><strong>Error Exception <\/strong><\/li><\/ul>\n\n\n\n<p>In PHP 7 Throwable Exception has been introduced. We can throw an error or exception manually instead of displaying the fatal to the end-user so that it can be caught by the catch block.<\/p>\n\n\n\n<p>Here is the complete hierarchy of the Exception classes introduced in PHP 7.<\/p>\n\n\n\n<p>Throwable<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Error<ul><li>ArithmeticError<ul><li>DivisionByZeroError<\/li><\/ul><\/li><li>AssertionError<\/li><li>ParseError<\/li><li>TypeError<\/li><\/ul><\/li><li>Exception<ul><li>ClosedGeneratorException<\/li><li>DOMException<\/li><li>ErrorException<\/li><li>IntlException<\/li><li>LogicException<ul><li>BadFunctionCallException<ul><li>BadMethodCallException<\/li><\/ul><\/li><li>DomainException<\/li><li>InvalidArgumentException<\/li><li>LengthException<\/li><li>OutOfRangeException<\/li><\/ul><\/li><li>PharException<\/li><li>ReflectionException<\/li><li>RuntimeException<ul><li>mysqli_sql_exception<\/li><li>OutOfBoundsException<\/li><li>OverflowException<\/li><li>PDOException<\/li><li>RangeException<\/li><li>UnderflowException<\/li><li>UnexpectedValueException<\/li><\/ul><\/li><\/ul><\/li><\/ul>\n\n\n\n<p>In PHP 7 there is the parent Class <strong>Throwable <\/strong>and all the exceptions come under this class.<\/p>\n\n\n\n<p>So here we see why we need the error and exception handling to prevent our code from throwing the fatal in front of the users.<\/p>\n\n\n\n<p>This is the simple code and the output where we have not used any error handling.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\nerror_reporting(E_ALL);\nini_set(&#039;display_errors&#039;, TRUE);\nini_set(&#039;display_startup_errors&#039;, TRUE);\nclass customException extends Exception {\n\tfunction index($var1, $var2) { \n\t\techo &quot;\\n value1 = &quot; . $var1;\n\t\techo &quot;\\n value2 = &quot; . $var2;\n\t\n\t\t$result = $var2%$var1;\n\t} \t \n}\n$obj = new customException();\n\n$obj-&gt;index(0,5); \n?&gt;<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"836\" height=\"303\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/02\/Selection_333-1.png\" alt=\"Selection_333-1\" class=\"wp-image-235302\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/02\/Selection_333-1.png 836w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/02\/Selection_333-1-300x109.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/02\/Selection_333-1-250x91.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/02\/Selection_333-1-768x278.png 768w\" sizes=\"(max-width: 836px) 100vw, 836px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>See what we got from the code the fatal error that can stop our complete work and we don&#8217;t want that.<\/p>\n\n\n\n<p>Here is the example with the output where we have used the proper error handling:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\nerror_reporting(E_ALL);\nini_set(&#039;display_errors&#039;, TRUE);\nini_set(&#039;display_startup_errors&#039;, TRUE);\nclass customException extends Exception {\n\tfunction index($var1, $var2) { \n\t\techo &quot;\\n value1 = &quot; . $var1;\n\t\techo &quot;\\n value2 = &quot; . $var2;\n\t\n\t\ttry {\n\t\t\t\t$result = $var2%$var1;\n\t\t\t\n\t\t} catch (DivisionByZeroError $e) {\n\n\t\t\techo &quot;\\n Exception Caught in DivisionByZeroError  &quot;, $e-&gt;getMessage();  \n\t\t\t\n\t\t} catch(Error $e) {\n\t\t\t\/\/ In case the above catch failed to catch the errors\n\t\t\techo &quot;\\n Exception Caught in Error  &quot;, $e-&gt;getMessage(); \n\t\t}\n\t} \t  \n}\n$obj = new customException();\n\n\/\/ Exception will be rised\n$obj-&gt;index(0,5); \n\t\n?&gt;<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"744\" height=\"172\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/02\/Selection_336-2.png\" alt=\"Selection_336-2\" class=\"wp-image-235310\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/02\/Selection_336-2.png 744w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/02\/Selection_336-2-300x69.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/02\/Selection_336-2-250x58.png 250w\" sizes=\"(max-width: 744px) 100vw, 744px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>This is the basic explanation of what is an exception and why we need the exception and error handling in our code.<\/p>\n\n\n\n<p>I hope this blog helps you in understanding the Exception Handling. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First of all, we need to understand what is the exception and how we can encounter it. The exceptions are uncaught errors. The errors that can terminate the complete work must be caught before it messes up the complete project. PHP has two built-in Exceptions, that can catch the errors generated in the Try block <a href=\"https:\/\/webkul.com\/blog\/exception-handling-in-php\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":221,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[188,4974,2057,5024],"class_list":["post-235211","post","type-post","status-publish","format-standard","hentry","category-php","tag-error","tag-exception","tag-php","tag-server-side-exception-handling"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Exception Handling in PHP - Webkul Blog<\/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:\/\/webkul.com\/blog\/exception-handling-in-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Exception Handling in PHP - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"First of all, we need to understand what is the exception and how we can encounter it. The exceptions are uncaught errors. The errors that can terminate the complete work must be caught before it messes up the complete project. PHP has two built-in Exceptions, that can catch the errors generated in the Try block [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/exception-handling-in-php\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-28T12:02:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-02-28T13:23:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/02\/Selection_333-1.png\" \/>\n<meta name=\"author\" content=\"Sweta Som\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sweta Som\" \/>\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:\/\/webkul.com\/blog\/exception-handling-in-php\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/exception-handling-in-php\/\"},\"author\":{\"name\":\"Sweta Som\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/fdc8428281225cfb70eb43d6cd066362\"},\"headline\":\"Exception Handling in PHP\",\"datePublished\":\"2020-02-28T12:02:51+00:00\",\"dateModified\":\"2020-02-28T13:23:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/exception-handling-in-php\/\"},\"wordCount\":274,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/exception-handling-in-php\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/02\/Selection_333-1.png\",\"keywords\":[\"error\",\"exception\",\"PHP\",\"Server Side Exception Handling\"],\"articleSection\":[\"php\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/exception-handling-in-php\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/exception-handling-in-php\/\",\"url\":\"https:\/\/webkul.com\/blog\/exception-handling-in-php\/\",\"name\":\"Exception Handling in PHP - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/exception-handling-in-php\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/exception-handling-in-php\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/02\/Selection_333-1.png\",\"datePublished\":\"2020-02-28T12:02:51+00:00\",\"dateModified\":\"2020-02-28T13:23:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/exception-handling-in-php\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/exception-handling-in-php\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/exception-handling-in-php\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/02\/Selection_333-1.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/02\/Selection_333-1.png\",\"width\":836,\"height\":303,\"caption\":\"Selection_333-1\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/exception-handling-in-php\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Exception Handling in PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/fdc8428281225cfb70eb43d6cd066362\",\"name\":\"Sweta Som\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cea77654a5ab26ecf23e54c00ae634403aa031ca70a870e4bfc716e114f2087e?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cea77654a5ab26ecf23e54c00ae634403aa031ca70a870e4bfc716e114f2087e?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"caption\":\"Sweta Som\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/swetasom-oc891\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Exception Handling in PHP - Webkul Blog","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:\/\/webkul.com\/blog\/exception-handling-in-php\/","og_locale":"en_US","og_type":"article","og_title":"Exception Handling in PHP - Webkul Blog","og_description":"First of all, we need to understand what is the exception and how we can encounter it. The exceptions are uncaught errors. The errors that can terminate the complete work must be caught before it messes up the complete project. PHP has two built-in Exceptions, that can catch the errors generated in the Try block [...]","og_url":"https:\/\/webkul.com\/blog\/exception-handling-in-php\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2020-02-28T12:02:51+00:00","article_modified_time":"2020-02-28T13:23:27+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/02\/Selection_333-1.png","type":"","width":"","height":""}],"author":"Sweta Som","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Sweta Som","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/exception-handling-in-php\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/exception-handling-in-php\/"},"author":{"name":"Sweta Som","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/fdc8428281225cfb70eb43d6cd066362"},"headline":"Exception Handling in PHP","datePublished":"2020-02-28T12:02:51+00:00","dateModified":"2020-02-28T13:23:27+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/exception-handling-in-php\/"},"wordCount":274,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/exception-handling-in-php\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/02\/Selection_333-1.png","keywords":["error","exception","PHP","Server Side Exception Handling"],"articleSection":["php"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/exception-handling-in-php\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/exception-handling-in-php\/","url":"https:\/\/webkul.com\/blog\/exception-handling-in-php\/","name":"Exception Handling in PHP - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/exception-handling-in-php\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/exception-handling-in-php\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/02\/Selection_333-1.png","datePublished":"2020-02-28T12:02:51+00:00","dateModified":"2020-02-28T13:23:27+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/exception-handling-in-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/exception-handling-in-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/exception-handling-in-php\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/02\/Selection_333-1.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/02\/Selection_333-1.png","width":836,"height":303,"caption":"Selection_333-1"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/exception-handling-in-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Exception Handling in PHP"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/fdc8428281225cfb70eb43d6cd066362","name":"Sweta Som","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cea77654a5ab26ecf23e54c00ae634403aa031ca70a870e4bfc716e114f2087e?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cea77654a5ab26ecf23e54c00ae634403aa031ca70a870e4bfc716e114f2087e?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","caption":"Sweta Som"},"url":"https:\/\/webkul.com\/blog\/author\/swetasom-oc891\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/235211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/221"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=235211"}],"version-history":[{"count":24,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/235211\/revisions"}],"predecessor-version":[{"id":235373,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/235211\/revisions\/235373"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=235211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=235211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=235211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}