Random-is.me


Year PHP Code II

Written by Shaibani Pressed on December 13th, 2008 - 10:09 pm Filled Under: Code

You may have read my previous post — Year PHP Code. Here’s an extra thing…

What if you wanna display the next year? You add the following…

1
<?php echo date ('Y') + 1; ?>

Output: 2010
When it does turn 2010, it will automatically change to 2011!

You can change the + 1 to any number that suits your needs!

Related randomness: (Automatically Generated)

  1. Year PHP Code If you wanna use the current year for a copyright...
  2. Iframes Out, PHP In: Revised Ok from what I’ve been told my previous tutorial...
  3. Iframes Out, PHP In [ratings] Yes, you heard me, Iframes out. Yes a site...
  4. phpinfo How to make your own phpinfo page… Simply create a...
  5. the_date and the_time tags You know, for a while I thought the_date for WordPress...

Enjoyed this article? Want more? Subscribe to my RSS Feed. :-)