{"id":14008,"date":"2016-07-21T16:15:00","date_gmt":"2016-07-21T13:15:00","guid":{"rendered":"http:\/\/www.webcodegeeks.com\/?p=14008"},"modified":"2018-01-09T10:48:31","modified_gmt":"2018-01-09T08:48:31","slug":"php-calendar-example","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/","title":{"rendered":"PHP Calendar Example"},"content":{"rendered":"<p>In this example we are going to build a web based dynamic calendar using PHP.\u00a0A web based calendar can be used for events, upcoming product specials, memos, and anything else you can think of. The calendar is divided into two parts, the top part shows the current year and month, while the lower part shows each day of the month.<br \/>\nFor this example we will use:<\/p>\n<ol>\n<li>A computer with PHP 5.5 installed<\/li>\n<li>notepad++<\/li>\n<\/ol>\n<h2>1. Getting Started<\/h2>\n<p>This calendar shows only the current month and year.\u00a0The web based calendar in this example depends heavily on PHP <code>date()<\/code> function. Let&#8217;s do a short introduction of the <code>date()<\/code> function.<br \/>\n&nbsp;<br \/>\n[ulp id=&#8217;8njY7i2QRy6sg8pg&#8217;]<\/p>\n<h2>1.1 Date in PHP<\/h2>\n<p>To manipulate dates in php we use the <code>date(format,timestamp)<\/code> function.<\/p>\n<ol>\n<li>format: This field is required and it specifies the format of the timestamp.<\/li>\n<li>timestamp: This field is optional and it specifies the timestamp to use, if it is not given, the current timestamp is used.<\/li>\n<\/ol>\n<p><b>Note<\/b> The optional timestamp parameter is an integer Unix timestamp that defaults to the current local time if a timestamp is not given.<br \/>\nThe unix timestamp is the number of seconds that have elapsed since January 1, 1970, not counting leap seconds.<br \/>\nA call to function <code>date(\"Y\/m\/d\")<\/code> will return the current year, month and day in the format &#8220;current year\/month\/day&#8221;. Also <code>date(\"Y\")<\/code> will return the current year. To return a date in the future or past you will have to include a timestamp value in your function call.<br \/>\nSome of the strings you can use in the format field are<\/p>\n<ul>\n<li>Y: This returns the year in numeric form.<\/li>\n<li>m: This returns the month in numeric form with leading zeros.<\/li>\n<li>d: This returns day of the month in numeric form with leading zeros.<\/li>\n<li>D: This returns a textual representation of the days. Three letters.<\/li>\n<li>t: This returns the numbers of days in the given month. 28 through 31<\/li>\n<li>w: This returns the numeric representation of the day of the week. 0 (for sunday) through 6(for saturday)<\/li>\n<li>i: This returns day of the month without leading zeros. 1 to 31<\/li>\n<li>z: This returns day of the year, starting from 0 to 365.<\/li>\n<li>W: This returns the week number of the year. weeks starting on Monday<\/li>\n<li>F: This returns a full textual representation of a month. January through December.<\/li>\n<li>n: This returns the numeric representation of the month without leading zeros. 1 through 12.<\/li>\n<li>y: This returns a two digit representation of the year. Examples are 98 or 07<\/li>\n<\/ul>\n<p>Please check the php manual for the\u00a0complete list.<\/p>\n<h2>1.2 Web Based Calendar Code<\/h2>\n<p><span style=\"text-decoration: underline;\"><em>calendar.php<\/em><\/span><\/p>\n<pre class=\"brush:php; highlight:[2,3,4,5,6, 7,111,115];\"> \r\n&lt;?php\r\n$numofdays=date(\"t\");\/\/numbers of days in the current month\r\n$first=date(\"Y-m\") .\"-\". \"1\";\/\/get the current year and month, join it with firstday of the month\r\n$day=strtotime($first);\/\/get the timestamp value of $first\r\n$firstday= date(\"w\",$day);\/\/get the numeric representation of the firstday in the month\r\n$hasdaystarted=false; \/\/have we reached the first day of the month\r\n$dayscounter=0;\r\n$numofdays=$numofdays+$firstday;\r\n?&gt;\r\n&lt;DOCTYPE html&gt;\r\n&lt;html lang=eng&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;Today's Calendar&lt;\/title&gt;\r\n&lt;style&gt;\r\n\r\n\thtml, body{\r\n\twidth:100%;\r\n\theight:100%;\r\n\tmargin:0%;\r\n\tfont-family:\"helvetica\",\"verdana\",\"calibri\", \"san serif\";\r\n\tpadding:0%;\r\n\tborder:0%;\r\n\tfont-weight:bold;\r\n\t}\r\n.date:hover{\r\n\tbackground-color:#ededed;\r\n\tcursor:pointer;\r\n\t}\r\n.col2{\r\n\theight:1950px;\r\n\tbackground-image:url(..\/images\/live137244_goldensparks.jpg);\r\n\tbackground-repeat:no-repeat;\r\n\tpadding-top:30px;\r\n\t}\r\n\r\n.container_comp{\r\n\twidth:880px;\r\n\theight:700px;\r\n\tmargin:0 auto;\r\n\tpadding:40px;\r\n\tbackground-color:#f7f7f7;\r\n\tborder-radius:20px;\r\n\tborder:1px solid #999999;\r\n\tmargin-bottom:25px;\r\n\t}\r\n\r\n\r\ndiv.wrapper{\r\n\tdisplay:block;\r\n\twidth:100%;\r\n\tmargin:0;\r\n\ttext-align:left;\r\n\tbackground-color:#f3e6c3;\r\n}\r\n.day{\r\n\twidth:109px;\r\n\theight:25px;\r\n\tcolor:#330000;\r\n\tfloat:left;\r\n\tpadding:5px;\r\n\ttext-align:center;\r\n\tfont:bold 16px arial;\r\n\tborder-bottom:1px solid #999999;\r\n\tborder-right:1px solid #999999;\r\n\tbackground-color:#cccccc;\r\n\t}\r\n\t\r\n\t .container_calendar{\r\n\twidth:840px;\r\n\theight:541px;\r\n\tmargin:0 auto;\r\n\tbackground-color:#f7f7f7;\r\n\tborder-radius:20px;\r\n\tborder:2px solid #999999;\r\n\tmargin-bottom:25px;\r\n\t}\r\n\t\r\n\t\r\n\t .date{\r\n\twidth:119px;\r\n\theight:100px;\r\n\tfloat:left;\r\n\tborder-bottom:1px solid #999999;\r\n\tborder-right:1px solid #999999;\r\n\tbackground-color:#ffffff;\r\n\t}\r\n\t\r\n&lt;\/style&gt;\r\n&lt;\/head&gt;\r\n\t&lt;div class=\"wrapper\"&gt;\r\n\t\r\n\t &lt;div class=\"col2\" style=\"height:850px\"&gt;\r\n        \t&lt;div class=\"container_comp\"&gt;\r\n\t\r\n\t\r\n&lt;?php\r\necho \"&lt;div align=center&gt;&lt;h1&gt;\" . date(\"F Y\")   . \"&lt;h1&gt;&lt;\/div&gt;\";\r\n?&gt;\r\n\r\n\r\n&lt;div class=container_calendar&gt;\r\n&lt;div&gt;\r\n &lt;div class=\"day\" style=\"border-top-left-radius:18px;\"&gt;Sunday&lt;\/div&gt;\r\n\r\n\r\n&lt;div class=day&gt;Monday&lt;\/div&gt; &lt;div class=day&gt;Tuesday&lt;\/div&gt; &lt;div class=day&gt;Wednesday&lt;\/div&gt; &lt;div class=day&gt;Thursday&lt;\/div&gt; &lt;div class=day&gt;Friday&lt;\/div&gt;\r\n&lt;div class=\"day\" style=\"border-top-right-radius:18px;\"&gt;Saturday&lt;\/div&gt;\r\n&lt;div class=\"clear\"&gt;&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;?php\r\nfor($I=0; $I&lt;$numofdays; $I++){\r\nif($I==$firstday)\r\n$hasdaystarted= true;\r\nif($hasdaystarted){\r\n$dayscounter++;\r\necho \"&lt;div class=date&gt;$dayscounter &lt;\/div&gt;\";\r\n\r\n}\r\n\r\nelse\r\necho \"&lt;div class=date&gt;  &lt;\/div&gt;\";\r\n\r\n}\r\n?&gt;\r\n&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p>We start by getting the number of days in the current month <code>numofdays=date(\"t\");<\/code> (line two). In line three we get the current year and month. In line four we get the timestamp of the first day in the current month with PHP <code> strtotime <\/code> function. The <code>$hasdaystarted<\/code> (Line 6) is a boolean value which indicates if we have reached the firstday of the month (we would use it, in our loop). The <code> $daycounter <\/code> increments the date in our loop(Line 115).<br \/>\nWe use a loop in line 111 to out each day of output calendar.<\/p>\n<h2>2. Summary<\/h2>\n<p>In this example we learnt how to create a web based dynamic calendar in PHP. We also learnt about PHP <code> date <\/code> function, how to use and manipulate it.<\/p>\n<h2>3. Download the source code<\/h2>\n<div class=\"download\"><strong>Download<\/strong><br \/>\nYou can download the full source code of this example here: <strong><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2016\/07\/Phpcalendarexample.zip\">Phpcalendarexample<\/a><br \/>\n<\/strong><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this example we are going to build a web based dynamic calendar using PHP.\u00a0A web based calendar can be used for events, upcoming product specials, memos, and anything else you can think of. The calendar is divided into two parts, the top part shows the current year and month, while the lower part shows &hellip;<\/p>\n","protected":false},"author":164,"featured_media":930,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[122],"class_list":["post-14008","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP Calendar Example - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"In this example we are going to build a web based dynamic calendar using PHP.\u00a0A web based calendar can be used for events, upcoming product specials,\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP Calendar Example - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"In this example we are going to build a web based dynamic calendar using PHP.\u00a0A web based calendar can be used for events, upcoming product specials,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-21T13:15:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-09T08:48:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Olayemi Odunayo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Olayemi Odunayo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/\"},\"author\":{\"name\":\"Olayemi Odunayo\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/417918d9b5811210265e8590509718b8\"},\"headline\":\"PHP Calendar Example\",\"datePublished\":\"2016-07-21T13:15:00+00:00\",\"dateModified\":\"2018-01-09T08:48:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/\"},\"wordCount\":553,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg\",\"keywords\":[\"php\"],\"articleSection\":[\"PHP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/\",\"name\":\"PHP Calendar Example - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg\",\"datePublished\":\"2016-07-21T13:15:00+00:00\",\"dateModified\":\"2018-01-09T08:48:31+00:00\",\"description\":\"In this example we are going to build a web based dynamic calendar using PHP.\u00a0A web based calendar can be used for events, upcoming product specials,\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/php\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PHP Calendar Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/417918d9b5811210265e8590509718b8\",\"name\":\"Olayemi Odunayo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/016b2a353262962fceecf5c274161cd9ef60fdf1593ec95e71d37f5fd9b444f6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/016b2a353262962fceecf5c274161cd9ef60fdf1593ec95e71d37f5fd9b444f6?s=96&d=mm&r=g\",\"caption\":\"Olayemi Odunayo\"},\"description\":\"I am a programmer and web developer, who has experience in developing websites and writing desktop and mobile applications. I have worked with both schematic and schemaless databases. I am also familiar with third party API and working with cloud servers. I do programming on the client side with Java, JavaScript, html, Ajax and CSS while I use PHP for server side programming.\",\"sameAs\":[\"https:\/\/www.webcodegeeks.com\/\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/olayemi-odunayo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP Calendar Example - Web Code Geeks - 2026","description":"In this example we are going to build a web based dynamic calendar using PHP.\u00a0A web based calendar can be used for events, upcoming product specials,","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:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/","og_locale":"en_US","og_type":"article","og_title":"PHP Calendar Example - Web Code Geeks - 2026","og_description":"In this example we are going to build a web based dynamic calendar using PHP.\u00a0A web based calendar can be used for events, upcoming product specials,","og_url":"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_published_time":"2016-07-21T13:15:00+00:00","article_modified_time":"2018-01-09T08:48:31+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg","type":"image\/jpeg"}],"author":"Olayemi Odunayo","twitter_card":"summary_large_image","twitter_creator":"@webcodegeeks","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Olayemi Odunayo","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/"},"author":{"name":"Olayemi Odunayo","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/417918d9b5811210265e8590509718b8"},"headline":"PHP Calendar Example","datePublished":"2016-07-21T13:15:00+00:00","dateModified":"2018-01-09T08:48:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/"},"wordCount":553,"commentCount":0,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg","keywords":["php"],"articleSection":["PHP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/","url":"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/","name":"PHP Calendar Example - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg","datePublished":"2016-07-21T13:15:00+00:00","dateModified":"2018-01-09T08:48:31+00:00","description":"In this example we are going to build a web based dynamic calendar using PHP.\u00a0A web based calendar can be used for events, upcoming product specials,","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/php\/php-calendar-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"PHP","item":"https:\/\/www.webcodegeeks.com\/category\/php\/"},{"@type":"ListItem","position":3,"name":"PHP Calendar Example"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/417918d9b5811210265e8590509718b8","name":"Olayemi Odunayo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/016b2a353262962fceecf5c274161cd9ef60fdf1593ec95e71d37f5fd9b444f6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/016b2a353262962fceecf5c274161cd9ef60fdf1593ec95e71d37f5fd9b444f6?s=96&d=mm&r=g","caption":"Olayemi Odunayo"},"description":"I am a programmer and web developer, who has experience in developing websites and writing desktop and mobile applications. I have worked with both schematic and schemaless databases. I am also familiar with third party API and working with cloud servers. I do programming on the client side with Java, JavaScript, html, Ajax and CSS while I use PHP for server side programming.","sameAs":["https:\/\/www.webcodegeeks.com\/"],"url":"https:\/\/www.webcodegeeks.com\/author\/olayemi-odunayo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/14008","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/164"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=14008"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/14008\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/930"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=14008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=14008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=14008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}