The below prints the current year "2006". How can I print the next year?
<? PRINT date("Y") ?>
<?php print date("Y", strtotime('Next year')); ?>
Or, simply:
<?php $thisYear = date("Y"); $nextYear = $thisYear++; echo $nextYear; ?>
Either way will work.
or just <?php echo date('Y')+1?>
Weedpacket wrote:or just <?php echo date('Y')+1?>
Or an obfuscated version:
<?php printf('%s',(string)((int)date('Y')+(int)TRUE/1)); ?>
😉