{"id":2300,"date":"2021-07-14T11:37:14","date_gmt":"2021-07-14T11:37:14","guid":{"rendered":"https:\/\/phptutorial.net\/?page_id=2300"},"modified":"2025-04-07T12:36:51","modified_gmt":"2025-04-07T12:36:51","slug":"php-date","status":"publish","type":"page","link":"https:\/\/www.phptutorial.net\/php-tutorial\/php-date\/","title":{"rendered":"PHP date"},"content":{"rendered":"\n<p><strong>Summary<\/strong>: in this tutorial, you&#8217;ll learn how to use the PHP <code>date()<\/code> function to format a timestamp using a specified format.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='introduction-to-the-php-date-function'>Introduction to the PHP date() function <a href=\"#introduction-to-the-php-date-function\" class=\"anchor\" id=\"introduction-to-the-php-date-function\" title=\"Anchor for Introduction to the PHP date() function\">#<\/a><\/h2>\n\n\n\n<p>The <code>date()<\/code> function formats a timestamp using a specified format:<\/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\">date(string $format, int|<span class=\"hljs-keyword\">null<\/span> $timestamp = <span class=\"hljs-keyword\">null<\/span>): string<\/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>The <code>date()<\/code> function has two parameters:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>$format<\/code> is a string that determines how the <code>$timestamp<\/code> should be formatted.<\/li>\n\n\n\n<li><code>$timestamp<\/code> is an Unix timestamp. The <code>$timestamp<\/code> parameter is optional. If you omit the <code>$timestamp<\/code> or use <code>null<\/code>, the it will default to the <a href=\"https:\/\/phptutorial.net\/php-tutorial\/php-time\/\">current timestamp<\/a>. In other words, it defaults to the value of the <code><a href=\"https:\/\/phptutorial.net\/php-tutorial\/php-time\/\">time()<\/a><\/code> function.<\/li>\n<\/ul>\n\n\n\n<p>The <code>date()<\/code> function returns the formatted date string.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='php-date-format-parameters'>PHP date format parameters <a href=\"#php-date-format-parameters\" class=\"anchor\" id=\"php-date-format-parameters\" title=\"Anchor for PHP date format parameters\">#<\/a><\/h2>\n\n\n\n<p>To format a date, you use the following date format parameters:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th><code>format<\/code>&nbsp;character<\/th><th>Description<\/th><th>Example returned values<\/th><\/tr><\/thead><tbody><tr><td><em>Day<\/em><\/td><td>&#8212;<\/td><td>&#8212;<\/td><\/tr><tr><td><code>d<\/code><\/td><td>2 digits with leading zeros that represent the day of the month<\/td><td><code>01<\/code>&nbsp;to&nbsp;<code>31<\/code><\/td><\/tr><tr><td><code>D<\/code><\/td><td>Three letters that present the day name<\/td><td><code>Mon<\/code>&nbsp;through&nbsp;<code>Sun<\/code><\/td><\/tr><tr><td><code>j<\/code><\/td><td>Day of the month without leading zeros<\/td><td><code>1<\/code>&nbsp;to&nbsp;<code>31<\/code><\/td><\/tr><tr><td><code>l<\/code>&nbsp;(lowercase &#8216;L&#8217;)<\/td><td>Full name of the day of the week&#8217;s <\/td><td><code>Sunday<\/code>&nbsp;through&nbsp;<code>Saturday<\/code><\/td><\/tr><tr><td><code>N<\/code><\/td><td>Day of the week in number according to ISO-8601<\/td><td><code>1<\/code>&nbsp;(for Monday) through&nbsp;<code>7<\/code>&nbsp;(for Sunday)<\/td><\/tr><tr><td><code>S<\/code><\/td><td>2 characters that represent the ordinal suffix for the day of the month in English<\/td><td><code>st<\/code>,&nbsp;<code>nd<\/code>,&nbsp;<code>rd<\/code>&nbsp;or&nbsp;<code>th<\/code><\/td><\/tr><tr><td><code>w<\/code><\/td><td>A numeric day of the week<\/td><td><code>0<\/code>&nbsp;(for Sunday) through&nbsp;<code>6<\/code>&nbsp;(for Saturday)<\/td><\/tr><tr><td><code>z<\/code><\/td><td>A numeric day of the year, starting from 0<\/td><td><code>0<\/code>&nbsp;through&nbsp;<code>365<\/code><\/td><\/tr><tr><td><em>Week<\/em><\/td><td>&#8212;<\/td><td>&#8212;<\/td><\/tr><tr><td><code>W<\/code><\/td><td>Week number of the year in ISO-8601, weeks starting on Monday<\/td><td>Example:&nbsp;<code>3<\/code>&nbsp;(the 3rd week in the year)<\/td><\/tr><tr><td><em>Month<\/em><\/td><td>&#8212;<\/td><td>&#8212;<\/td><\/tr><tr><td><code>F<\/code><\/td><td>The full month name<\/td><td><code>January<\/code>&nbsp;through&nbsp;<code>December<\/code><\/td><\/tr><tr><td><code>m<\/code><\/td><td>The month number with leading zeros<\/td><td><code>01<\/code>&nbsp;through&nbsp;<code>12<\/code><\/td><\/tr><tr><td><code>M<\/code><\/td><td>Three characters that represent the month name<\/td><td><code>Jan<\/code>&nbsp;through&nbsp;<code>Dec<\/code><\/td><\/tr><tr><td><code>n<\/code><\/td><td>The month number without leading zero<\/td><td><code>1<\/code>&nbsp;through&nbsp;<code>12<\/code><\/td><\/tr><tr><td><code>t<\/code><\/td><td>The Number of days in a month<\/td><td><code>28<\/code>&nbsp;through&nbsp;<code>31<\/code><\/td><\/tr><tr><td><em>Year<\/em><\/td><td>&#8212;<\/td><td>&#8212;<\/td><\/tr><tr><td><code>L<\/code><\/td><td>Return 1 if it&#8217;s a leap year and zero otherwise<\/td><td><\/td><\/tr><tr><td><code>o<\/code><\/td><td>ISO-8601 week-numbering year. This has the same value as&nbsp;<code>Y<\/code>, except that if the ISO week number (<code>W<\/code>) belongs to the previous or next year, that year is used instead.<\/td><td>Examples:&nbsp;<code>1999<\/code>&nbsp;or&nbsp;<code>2003<\/code><\/td><\/tr><tr><td><code>Y<\/code><\/td><td>A four-digit represents a year number<\/td><td>Examples:&nbsp;<code>2020<\/code> or&nbsp;<code>2021<\/code><\/td><\/tr><tr><td><code>y<\/code><\/td><td>A two-digit representation of a year<\/td><td>Examples:&nbsp;<code>99<\/code>&nbsp;or&nbsp;<code>03<\/code><\/td><\/tr><tr><td><em>Time<\/em><\/td><td>&#8212;<\/td><td>&#8212;<\/td><\/tr><tr><td><code>a<\/code><\/td><td>Lowercase am or pm<\/td><td><code>am<\/code>&nbsp;or&nbsp;<code>pm<\/code><\/td><\/tr><tr><td><code>A<\/code><\/td><td>Uppercase AM or PM<\/td><td><code>AM<\/code>&nbsp;or&nbsp;<code>PM<\/code><\/td><\/tr><tr><td><code>B<\/code><\/td><td><a href=\"https:\/\/en.wikipedia.org\/wiki\/Swatch_Internet_Time\" target=\"_blank\" rel=\"noreferrer noopener\">Swatch Internet time<\/a><\/td><td><code>000<\/code>&nbsp;through&nbsp;<code>999<\/code><\/td><\/tr><tr><td><code>g<\/code><\/td><td>12-hour format of an hour without leading zeros<\/td><td><code>1<\/code>&nbsp;through&nbsp;<code>12<\/code><\/td><\/tr><tr><td><code>G<\/code><\/td><td>24-hour format of an hour without leading zeros<\/td><td><code>0<\/code>&nbsp;through&nbsp;<code>23<\/code><\/td><\/tr><tr><td><code>h<\/code><\/td><td>12-hour format of an hour with leading zeros<\/td><td><code>01<\/code>&nbsp;through&nbsp;<code>12<\/code><\/td><\/tr><tr><td><code>H<\/code><\/td><td>24-hour format of an hour with leading zeros<\/td><td><code>00<\/code>&nbsp;through&nbsp;<code>23<\/code><\/td><\/tr><tr><td><code>i<\/code><\/td><td>Minutes with leading zeros<\/td><td><code>00<\/code>&nbsp;to&nbsp;<code>59<\/code><\/td><\/tr><tr><td><code>s<\/code><\/td><td>Seconds with leading zeros<\/td><td><code>00<\/code>&nbsp;through&nbsp;<code>59<\/code><\/td><\/tr><tr><td><code>u<\/code><\/td><td>Microseconds.<\/td><td>Example:&nbsp;<code>654321<\/code><\/td><\/tr><tr><td><code>v<\/code><\/td><td>Milliseconds.<\/td><td>Example:&nbsp;<code>654<\/code><\/td><\/tr><tr><td><em>Timezone<\/em><\/td><td>&#8212;<\/td><td>&#8212;<\/td><\/tr><tr><td><code>e<\/code><\/td><td>Timezone identifier<\/td><td>Examples:&nbsp;<code>UTC<\/code>,&nbsp;<code>GMT<\/code>,&nbsp;<code>Europe\/Berlin<\/code><\/td><\/tr><tr><td><code>I<\/code>&nbsp;(capital i)<\/td><td>Daylight Saving<\/td><td><code>1<\/code>&nbsp;if Daylight Saving Time,&nbsp;<code>0<\/code>&nbsp;otherwise.<\/td><\/tr><tr><td><code>O<\/code><\/td><td>Difference to GMT without colon between hours and minutes<\/td><td>Example:&nbsp;<code>+0200<\/code><\/td><\/tr><tr><td><code>P<\/code><\/td><td>Difference to GMT with a colon between hours and minutes<\/td><td>Example:&nbsp;<code>+02:00<\/code><\/td><\/tr><tr><td><code>p<\/code><\/td><td>The same as&nbsp;<code>P<\/code>, but returns&nbsp;<code>Z<\/code>&nbsp;instead of&nbsp;<code>+00:00<\/code><\/td><td>Example:&nbsp;<code>+02:00<\/code><\/td><\/tr><tr><td><code>T<\/code><\/td><td>Timezone abbreviation<\/td><td>Examples:&nbsp;<code>CEST<\/code>,&nbsp;<code>MDT<\/code>&nbsp;&#8230;<\/td><\/tr><tr><td><code>Z<\/code><\/td><td>Timezone offset in seconds. <\/td><td><code>-43200<\/code>&nbsp;through&nbsp;<code>50400<\/code><\/td><\/tr><tr><td><em>Full Date\/Time<\/em><\/td><td>&#8212;<\/td><td>&#8212;<\/td><\/tr><tr><td><code>c<\/code><\/td><td>ISO 8601 date<\/td><td>2021-07-14T13:38:04+02:00<\/td><\/tr><tr><td><code>r<\/code><\/td><td><a href=\"http:\/\/www.faqs.org\/rfcs\/rfc2822\">RFC 2822<\/a>&nbsp;formatted date<\/td><td>Wed, 14 Jul 2021 13:38:20 +0200<\/td><\/tr><tr><td><code>U<\/code><\/td><td>Seconds since January 1 1970 00:00:00 GMT (the Unix Epoch)<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id='php-date-function-examples'>PHP date() function examples <a href=\"#php-date-function-examples\" class=\"anchor\" id=\"php-date-function-examples\" title=\"Anchor for PHP date() function examples\">#<\/a><\/h2>\n\n\n\n<p>Let&#8217;s take some practical examples of using the <code>date()<\/code> function.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='1-using-the-php-date-function-to-show-the-current-year-example'>1) Using the PHP date() function to show the current year example <a href=\"#1-using-the-php-date-function-to-show-the-current-year-example\" class=\"anchor\" id=\"1-using-the-php-date-function-to-show-the-current-year-example\" title=\"Anchor for 1) Using the PHP date() function to show the current year example\">#<\/a><\/h3>\n\n\n\n<p>The following example uses the <code>date()<\/code> function to show how to display the current year:<\/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<span class=\"hljs-keyword\">echo<\/span> date(<span class=\"hljs-string\">'Y'<\/span>);<\/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=PD9waHAKCmVjaG8gZGF0ZSgnWScpOw\" target=\"_blank\" rel=\"noreferrer noopener\">Try it<\/a><\/p>\n\n\n\n<p>This is useful especially when you want to display the copyright on the footer of a website or a web application:<\/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\">&lt;p&gt;Copyright &amp;copy; <span class=\"hljs-meta\">&lt;?php<\/span> <span class=\"hljs-keyword\">echo<\/span> date(<span class=\"hljs-string\">'Y'<\/span>) <span class=\"hljs-meta\">?&gt;<\/span> - by phptutorial.net. All rights reserved.&lt;\/p&gt;<\/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><a href=\"https:\/\/phptutorial.net\/playground\/?q=PHA-Q29weXJpZ2h0ICZjb3B5OyA8P3BocCBlY2hvIGRhdGUoJ1knKSA_PiAtIGJ5IHBocHR1dG9yaWFsLm5ldC4gQWxsIHJpZ2h0cyByZXNlcnZlZC48L3A-\" target=\"_blank\" rel=\"noreferrer noopener\">Try it<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id='2-using-the-date-function-to-format-a-date-for-the-mysql-database'>2) Using the date() function to format a date for the MySQL database <a href=\"#2-using-the-date-function-to-format-a-date-for-the-mysql-database\" class=\"anchor\" id=\"2-using-the-date-function-to-format-a-date-for-the-mysql-database\" title=\"Anchor for 2) Using the date() function to format a date for the MySQL database\">#<\/a><\/h3>\n\n\n\n<p>To insert a date into a <a href=\"https:\/\/www.mysqltutorial.org\/mysql-datetime\/\">datetime column in the MySQL database<\/a>, you use the following date format:<\/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\">YYYY-MM-DD HH:MM:SS<\/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<p>In PHP, it&#8217;s equivalent to the following format:<\/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\">Y-m-d H:i:s<\/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>For example:<\/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$created_at = date(<span class=\"hljs-string\">\"Y-m-d H:i:s\"<\/span>);\n<span class=\"hljs-keyword\">echo<\/span> $created_at;<\/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=PD9waHAKCiRjcmVhdGVkX2F0ID0gZGF0ZSgiWS1tLWQgSDppOnMiKTsKZWNobyAkY3JlYXRlZF9hdDs\" target=\"_blank\" rel=\"noreferrer noopener\">Try it<\/a><\/p>\n\n\n\n<p>Output:<\/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-number\">2021<\/span><span class=\"hljs-number\">-07<\/span><span class=\"hljs-number\">-14<\/span> <span class=\"hljs-number\">13<\/span>:<span class=\"hljs-number\">03<\/span>:<span class=\"hljs-number\">08<\/span><\/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<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>Use the PHP <code>date()<\/code> function to format a timestamp in a specified format.<\/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=\"2300\"\n\t\t\t\tdata-post-url=\"https:\/\/www.phptutorial.net\/php-tutorial\/php-date\/\"\n\t\t\t\tdata-post-title=\"PHP date\"\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=\"2300\"\n\t\t\t\tdata-post-url=\"https:\/\/www.phptutorial.net\/php-tutorial\/php-date\/\"\n\t\t\t\tdata-post-title=\"PHP date\"\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&#8217;ll learn how to use the PHP date() function to format a timestamp.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":15,"menu_order":163,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2300","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.phptutorial.net\/wp-json\/wp\/v2\/pages\/2300","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=2300"}],"version-history":[{"count":4,"href":"https:\/\/www.phptutorial.net\/wp-json\/wp\/v2\/pages\/2300\/revisions"}],"predecessor-version":[{"id":3243,"href":"https:\/\/www.phptutorial.net\/wp-json\/wp\/v2\/pages\/2300\/revisions\/3243"}],"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=2300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}