note 115579 deleted from migration55.changes by salathe
| From: | salathe@php.net | Date: | Fri, 22 Aug 2014 08:17:34 +0000 |
| Subject: | note 115579 deleted from migration55.changes by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-200283@lists.php.net to get a copy of this message | ||
Note Submitter: Mohammad (MD) Amanalikhani
----
hello
Name and Number of seasons:
string =
array('winter','spring','summer','fall')[(int)($month/3.1)];
integer = (int)($month/3.1)+1;
example:
2014/05/05
$year=2014;
$month=05;
$day=05;
$int = (int)($month/3.1)+1; // 3
$str =
array('winter','spring','summer','fall')[(int)($month/3.1)];
// 'summer'