Try with:
$end = date('Y-m-d', strtotime('+5 years'));
More Related Contents:
- How do I insert an array inside an empty array in PHP?
- the update query just update the last row and affect other with it’s value
- How to insert images into a database using PHP [closed]
- (PHP) Warning: file_get_contents() [function.file-get-contents]: couldn’t resolve host name
- How to change mysql to mysqli?
- How to generate XML file dynamically using PHP?
- Server not parsing .html as PHP
- How to increase the execution timeout in php?
- PHP: Replace umlauts with closest 7-bit ASCII equivalent in an UTF-8 string
- Fatal error: Class ‘SoapClient’ not found
- Which is faster in PHP, $array[] = $value or array_push($array, $value)?
- A formula to find prime numbers in a loop
- Upload Multiple Files with PHP and JQuery
- mcrypt_encrypt to openssl_encrypt, and OPENSSL_ZERO_PADDING problems
- When using Gmail for SMTP, can you set a different “from” address?
- PHP Undefined Index [duplicate]
- Combine PHP prepared statments with LIKE
- Explode string on commas and trim potential spaces from each value
- Nullable return types in PHP7
- Get array’s key recursively and create underscore separated string
- PHP: using DOMDocument whenever I try to write UTF-8 it writes the hexadecimal notation of it
- PHP file upload: mime or extension based verification?
- Disable rate limiter in Laravel?
- Setting up PHPMailer with Office365 SMTP
- Convert Lat/Longs to X/Y Co-ordinates
- What is the difference between the | and || operators?
- Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes)
- How do I access static member of a class?
- How do I ensure I caught all errors from MySQLi::multi_query?
- Is there a way to change all keys in a flat indexed array to the same string (“Name”)? [closed]