sgsmallman Posted October 6, 2011 Report 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
jstern Posted October 6, 2011 Report 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now