|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-08-12 08:48 UTC] derick@php.net
[2005-08-12 09:24 UTC] osmium at 163 dot com
[2005-08-31 14:37 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 07:00:01 2025 UTC |
Description: ------------ I got nothing on the first line but a number "1123804800" on the second line. Maybe format "Y/m/d" is not supported by strtotime(). However, I got two numbers in v5.0.3 Reproduce code: --------------- <?php echo "Y/m/d: ", strtotime("2005/8/12"), "<br>"; echo "Y-m-d: ", strtotime("2005-8-12"); ?> Expected result: ---------------- Y/m/d: 1123804800 Y-m-d: 1123804800 Actual result: -------------- Y/m/d: Y-m-d: 1123804800