note 130233 added to function.date

From: Date: Tue, 08 Apr 2025 11:44:41 +0000
Subject: note 130233 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-222071@lists.php.net to get a copy of this message
Despite of the fact that $timestamp according to description by default is null the result of function w/o second parameter and null as second parameter differs <?php var_dump(date('YmdHis')); -> string(14) "20250408142831" var_dump(date('YmdHis', null)); -> string(14) "19700101030000" ?> It's discouraging ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.137 (proxied: 185.195.146.188) ---- Manual Page -- https://php.net/manual/en/function.date.php Edit -- https://main.php.net/note/edit/130233 Del: integrated -- https://main.php.net/note/delete/130233/integrated Del: useless -- https://main.php.net/note/delete/130233/useless Del: bad code -- https://main.php.net/note/delete/130233/bad+code Del: spam -- https://main.php.net/note/delete/130233/spam Del: non-english -- https://main.php.net/note/delete/130233/non-english Del: in docs -- https://main.php.net/note/delete/130233/in+docs Del: other reasons-- https://main.php.net/note/delete/130233 Reject -- https://main.php.net/note/reject/130233 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#222071) next »