Last active
October 30, 2022 15:39
-
-
Save Jayaramki/8f71e55cdc65cbe34d76 to your computer and use it in GitHub Desktop.
Revisions
-
Jayaramki revised this gist
Jun 24, 2014 . 2 changed files with 0 additions and 36 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,33 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +0,0 @@ -
Jayaramki revised this gist
Jun 24, 2014 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ $dates = get_dates(6, 2014); echo '<pre>'; print_r($dates); -
Jayaramki revised this gist
Jun 24, 2014 . 1 changed file with 33 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,33 @@ Array ( [0] => 2014-6-01 [1] => 2014-6-02 [2] => 2014-6-03 [3] => 2014-6-04 [4] => 2014-6-05 [5] => 2014-6-06 [6] => 2014-6-07 [7] => 2014-6-08 [8] => 2014-6-09 [9] => 2014-6-10 [10] => 2014-6-11 [11] => 2014-6-12 [12] => 2014-6-13 [13] => 2014-6-14 [14] => 2014-6-15 [15] => 2014-6-16 [16] => 2014-6-17 [17] => 2014-6-18 [18] => 2014-6-19 [19] => 2014-6-20 [20] => 2014-6-21 [21] => 2014-6-22 [22] => 2014-6-23 [23] => 2014-6-24 [24] => 2014-6-25 [25] => 2014-6-26 [26] => 2014-6-27 [27] => 2014-6-28 [28] => 2014-6-29 [29] => 2014-6-30 ) -
Jayaramki created this gist
Jun 24, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ /*Get All Dates in given month and year in php by CJ Ramki (http://cj-ramki.blogspot.in)*/ function get_dates($month,$year){ $numbers = array('1','2','3','4','5','6','7','8','9'); $datesArray = array(); $num_of_days = date('t',mktime (0,0,0,$month,1,$year)); for( $i=1; $i<= $num_of_days; $i++) { if(in_array($i,$numbers)) $i = '0'.$i; //complete date in Y-m-d format $datesArray[]= $moYe[1] . "-". $moYe[0]. "-". $i; } return $datesArray; }