|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-07-01 17:17 UTC] derick@php.net
[2005-07-01 17:25 UTC] bo at theaddedones dot com
[2005-07-03 23:38 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 09 04:00:01 2025 UTC |
Description: ------------ best by example ---snip--- print strtotime("monkey") ."\n"; print date("Y-m-d", strtotime("monkey")) ."\n"; exit; ---snip--- OUTPUT 1120230396 2005-07-01 --- who knew that monkey meant 'now' (it also defaults to now on various other strings) Reproduce code: --------------- <?php print strtotime("monkey") ."\n"; print date("Y-m-d", strtotime("monkey")) ."\n"; exit; ?> Expected result: ---------------- i expect to see 'false' Actual result: -------------- 1120230396 2005-07-01