sgsmallman Posted October 6, 2011 Report Share Posted October 6, 2011 Title is pretty self explanatory, i know that DateTime: add returns a DateTime object in your preferred format. But I want to return false. Dose anyone know how to do so Quote Link to comment Share on other sites More sharing options...
jstern Posted October 6, 2011 Report Share Posted October 6, 2011 Maybe its not as self explanatory as it sounds.. from php.net "Return Values Returns the DateTime object for method chaining or FALSE on failure." It returns false on failure by default. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.