Browse - programming tips - php get current yearDate: 2011jan20 Language: php Level: beginner Q. How do you get the current year with php? A. Use the date function: $year = date('Y'); More info http://php.net/manual/en/function.date.php
Add a commentSign in to add a comment | Advertisements:
|