note 109023 deleted from function.date by peehaa
| From: | peehaa@php.net | Date: | Sun, 28 Apr 2019 10:19:53 +0000 |
| Subject: | note 109023 deleted from function.date by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-210761@lists.php.net to get a copy of this message | ||
Note Submitter: Tim Connolly
----
Here's my solution for looking up the month number by name (used when parsing an
'ls'):
<?php
for($m=1;$m<=12;$m++){
$month=date("M",mktime(0,0,0,$m,1,2000));
$mon["$month"]=$m;
}
?>