note 127574 added to function.date

From: Date: Mon, 05 Sep 2022 11:25:46 +0000
Subject: note 127574 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-219517@lists.php.net to get a copy of this message
Format to get the day of the year. <?php $day_of_year = (int)date("z") + 1; // Jan 01, 2022 -> 1 // Feb 01, 2022 -> 32 // Dec 31, 2022 -> 365 // Feb 28, 2022 -> 59 // Feb 29, 2024 -> 60 // Dec 31, 2024 -> 366 ?> ---- Server IP: 45.112.84.4 Probable Submitter: 185.85.3.173 (proxied: 139.20.164.53) ---- Manual Page -- https://php.net/manual/en/function.date.php Edit -- https://main.php.net/note/edit/127574 Del: integrated -- https://main.php.net/note/delete/127574/integrated Del: useless -- https://main.php.net/note/delete/127574/useless Del: bad code -- https://main.php.net/note/delete/127574/bad+code Del: spam -- https://main.php.net/note/delete/127574/spam Del: non-english -- https://main.php.net/note/delete/127574/non-english Del: in docs -- https://main.php.net/note/delete/127574/in+docs Del: other reasons-- https://main.php.net/note/delete/127574 Reject -- https://main.php.net/note/reject/127574 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#219517) next »