News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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!
php4 php5 upgrade strtotime space after plus php4 php5 upgrade strtotime space after plus


blog comments powered by Disqus

Similar Posts

Antony Dovgal's Blog: 5.3 snapshots are avilable

Zend Developer Zone: Migrating applications from PHP 4 to Zend Core 2.5 w/support for IBM Informix

DevShed: Understanding Static Properties with PHP 5

Zend Developer Zone: Davey Shafik and Ben Ramsey on the Zend Certification Exam Study Guide

Nexen.net: PHP Statistics for October 2008


Community Events





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


conference interview introduction language framework unittest configure series opinion version composer release community list voicesoftheelephpant extension laravel symfony podcast api

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