News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Dallas PHP Users Group:
PHP4 to PHP5 Minor gotcha
January 12, 2006 @ 06:58:21

On the Dallas PHP Users Group website today, there's quick little "gotcha" by MonkeyT when it comes to using the strtotime() function.

strtotime translates a date presented in various formats into a unix timestamp. It allows the syntax "+2 weeks" and various other time units to push that chosen date translation into the future. In 4.3.10, php would allow a space between the + and the beginning of the parameter. that doesn't seem to be the case any more. ("+3 days", not "+ 3 days"). Other than that, pretty smooth changeover so far.

It's pretty subtle, but I could potentially cause some headaches in the future - so keep an eye out!

0 comments voice your opinion now!
php php4 php5 upgrade strtotime space after plus php php4 php5 upgrade strtotime space after plus



Similar Posts

Jim Plush\'s Blog: The Zend Encoder Fiasco Part Deux - The Personal Attack

Greg Beaver\'s Blog: Setting up your own PEAR channel - the official way

PHPit.net: Creating a file manager with PHP

PHPit.net: Handling dates and times in PHP & MySQL

DevShed: Building Object-Oriented Web Pages with Inheritance in PHP 5


Community Events









Don't see your event here?
Let us know!


job mysql example release framework ajax releases package database PEAR zendframework cakephp conference application PHP5 book security developer zend code

All content copyright, 2009 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework