note 56414 deleted from function.strtotime by nlopess

From: Date: Thu, 01 Sep 2005 20:58:38 +0000
Subject: note 56414 deleted from function.strtotime by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-94627@lists.php.net to get a copy of this message
Note Submitter: kwillmert a visionaryweb dt cm ---- strtotime() will randomly return -1 (failure), even on the exact same input repeated many times, if there is extra whitespace at the end of the input string. Always use rtrim() or trim() before passing input.

« previous php.notes (#94627) next »