{"id":45398,"date":"2016-04-11T06:46:14","date_gmt":"2016-04-11T06:46:14","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=45398"},"modified":"2021-07-16T11:59:05","modified_gmt":"2021-07-16T11:59:05","slug":"export-php-data-xls-file-2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/","title":{"rendered":"Export PHP data to .xls file"},"content":{"rendered":"\n<p>Here, I&#8217;m going to tell you how to export your php data to .xls file. First of all, you have to prepare your data in this format.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:php\">$export_data = array(\n\t  array(\n\t            'Product' =&gt; 'Product 1',\n\t            'Valid From' =&gt; '2016-04-06 19:02:00',\n\t            'Valid Till' =&gt; '2016-04-07 19:04:00',\n\t            'Views' =&gt; 17,\n\t            'Quantity Request' =&gt; 4,\n\t            'Number of Accepted Requests' =&gt; 0,\n\t            'Number of Rejected Requests' =&gt; 4,\n\t            'Vendor' =&gt; 1,\n\t            'System' =&gt; 3\n\t        ),\n\t  array(\n\t            'Product' =&gt; 'Product 2',\n\t            'Valid From' =&gt; '2016-04-08 19:00:00',\n\t            'Valid Till' =&gt; '2016-04-15 19:00:00',\n\t            'Views' =&gt; 19,\n\t            'Quantity Request' =&gt; 1,\n\t            'Number of Accepted Requests' =&gt; 1,\n\t            'Number of Rejected Requests' =&gt; 0,\n\t            'Vendor' =&gt; 1,\n\t            'System' =&gt; 0\n\t        ),\n\t  array(\n\t            'Product' =&gt; 'Product 3',\n\t            'Valid From' =&gt; '2016-04-08 15:30:00',\n\t            'Valid Till' =&gt; '2016-04-12 04:30:00',\n\t            'Views' =&gt; 6,\n\t            'Quantity Request' =&gt; 1,\n\t            'Number of Accepted Requests' =&gt; 1,\n\t            'Number of Rejected Requests' =&gt; 0,\n\t            'Vendor' =&gt; 1,\n\t            'System' =&gt; 0\n\t        )\n\t);<\/pre>\n\n\n\n<p>You can even import data from the database and manage to put it in this format.<\/p>\n\n\n\n<p>After fetching data in variable $export_data, put the code below to download a .xls file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:php\">$fileName = \"export_data\" . rand(1,100) . \".xls\";\n\nif ($export_data) {\n\tfunction filterData(&amp;$str) {\n\t\t$str = preg_replace(\"\/\\t\/\", \"\\\\t\", $str);\n\t\t$str = preg_replace(\"\/\\r?\\n\/\", \"\\\\n\", $str);\n\t\tif(strstr($str, '\"')) $str = '\"' . str_replace('\"', '\"\"', $str) . '\"';\n\t}\n\n\t\/\/ headers for download\n\theader(\"Content-Disposition: attachment; filename=\\\"$fileName\\\"\");\n\theader(\"Content-Type: application\/vnd.ms-excel\");\n\n\t$flag = false;\n\tforeach($export_data as $row) {\n\t\tif(!$flag) {\n\t\t\t\/\/ display column names as first row\n\t\t\techo implode(\"\\t\", array_keys($row)) . \"\\n\";\n\t\t\t$flag = true;\n\t\t}\n\t\t\/\/ filter data\n\t\tarray_walk($row, 'filterData');\n\t\techo implode(\"\\t\", array_values($row)) . \"\\n\";\n\t}\n\texit;\t\t\t\n}<\/pre>\n\n\n\n<p>Here, array_walk function is used which runs each array element in a user-defined function. The parameter for this function are array&#8217;s keys and values.<\/p>\n\n\n\n<p>The output will a .xls file:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft\"><img decoding=\"async\" width=\"1057\" height=\"300\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/xls_output.png\" alt=\".xls file\" class=\"wp-image-45400\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/xls_output.png 1057w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/xls_output-250x71.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/xls_output-300x85.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/04\/xls_output-768x218.png 768w\" sizes=\"(max-width: 1057px) 100vw, 1057px\" loading=\"lazy\" \/><\/figure><\/div>\n\n\n\n<p>Hope, this may help you. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here, I&#8217;m going to tell you how to export your php data to .xls file. First of all, you have to prepare your data in this format. $export_data = array( array( &#8216;Product&#8217; =&gt; &#8216;Product 1&#8217;, &#8216;Valid From&#8217; =&gt; &#8216;2016-04-06 19:02:00&#8217;, &#8216;Valid Till&#8217; =&gt; &#8216;2016-04-07 19:04:00&#8217;, &#8216;Views&#8217; =&gt; 17, &#8216;Quantity Request&#8217; =&gt; 4, &#8216;Number of Accepted <a href=\"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":70,"featured_media":43102,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[2957,2958,2057],"class_list":["post-45398","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-xls","tag-excel","tag-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Export PHP data to .xls file - 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\/export-php-data-xls-file-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Export PHP data to .xls file - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Here, I&#8217;m going to tell you how to export your php data to .xls file. First of all, you have to prepare your data in this format. $export_data = array( array( &#039;Product&#039; =&gt; &#039;Product 1&#039;, &#039;Valid From&#039; =&gt; &#039;2016-04-06 19:02:00&#039;, &#039;Valid Till&#039; =&gt; &#039;2016-04-07 19:04:00&#039;, &#039;Views&#039; =&gt; 17, &#039;Quantity Request&#039; =&gt; 4, &#039;Number of Accepted [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/\" \/>\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=\"2016-04-11T06:46:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-16T11:59:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/Code-Snippet.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Vikhyat Sharma\" \/>\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=\"Vikhyat Sharma\" \/>\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\/export-php-data-xls-file-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/\"},\"author\":{\"name\":\"Vikhyat Sharma\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/af7160d2546c64a1856ab1b5ce77d9b0\"},\"headline\":\"Export PHP data to .xls file\",\"datePublished\":\"2016-04-11T06:46:14+00:00\",\"dateModified\":\"2021-07-16T11:59:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/\"},\"wordCount\":101,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/Code-Snippet.png\",\"keywords\":[\".xls\",\"excel\",\"PHP\"],\"articleSection\":[\"php\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/\",\"url\":\"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/\",\"name\":\"Export PHP data to .xls file - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/Code-Snippet.png\",\"datePublished\":\"2016-04-11T06:46:14+00:00\",\"dateModified\":\"2021-07-16T11:59:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/Code-Snippet.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/Code-Snippet.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Export PHP data to .xls file\"}]},{\"@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\/af7160d2546c64a1856ab1b5ce77d9b0\",\"name\":\"Vikhyat Sharma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7c9c700cc2d7120c9faf1ab3392b4e533808ba197f58c0441d6caecc68179e12?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7c9c700cc2d7120c9faf1ab3392b4e533808ba197f58c0441d6caecc68179e12?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Vikhyat Sharma\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/vikhyat-sharma83\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Export PHP data to .xls file - 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\/export-php-data-xls-file-2\/","og_locale":"en_US","og_type":"article","og_title":"Export PHP data to .xls file - Webkul Blog","og_description":"Here, I&#8217;m going to tell you how to export your php data to .xls file. First of all, you have to prepare your data in this format. $export_data = array( array( 'Product' =&gt; 'Product 1', 'Valid From' =&gt; '2016-04-06 19:02:00', 'Valid Till' =&gt; '2016-04-07 19:04:00', 'Views' =&gt; 17, 'Quantity Request' =&gt; 4, 'Number of Accepted [...]","og_url":"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2016-04-11T06:46:14+00:00","article_modified_time":"2021-07-16T11:59:05+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/Code-Snippet.png","type":"image\/png"}],"author":"Vikhyat Sharma","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Vikhyat Sharma","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/"},"author":{"name":"Vikhyat Sharma","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/af7160d2546c64a1856ab1b5ce77d9b0"},"headline":"Export PHP data to .xls file","datePublished":"2016-04-11T06:46:14+00:00","dateModified":"2021-07-16T11:59:05+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/"},"wordCount":101,"commentCount":1,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/Code-Snippet.png","keywords":[".xls","excel","PHP"],"articleSection":["php"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/","url":"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/","name":"Export PHP data to .xls file - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/Code-Snippet.png","datePublished":"2016-04-11T06:46:14+00:00","dateModified":"2021-07-16T11:59:05+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/Code-Snippet.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/Code-Snippet.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/export-php-data-xls-file-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Export PHP data to .xls file"}]},{"@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\/af7160d2546c64a1856ab1b5ce77d9b0","name":"Vikhyat Sharma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7c9c700cc2d7120c9faf1ab3392b4e533808ba197f58c0441d6caecc68179e12?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7c9c700cc2d7120c9faf1ab3392b4e533808ba197f58c0441d6caecc68179e12?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Vikhyat Sharma"},"url":"https:\/\/webkul.com\/blog\/author\/vikhyat-sharma83\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/45398","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\/70"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=45398"}],"version-history":[{"count":3,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/45398\/revisions"}],"predecessor-version":[{"id":296494,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/45398\/revisions\/296494"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/43102"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=45398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=45398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=45398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}