php get current date

You can get current date in php using getdate().This function return array of options like seconds,minutes,hours,mday, and other options.You can also get date uing date function of php.Here i am presnting you some examples how to get current date in php. $dateArray=getdate();     echo “Current seconds=”.$dateArray[‘seconds’];    echo “Current minutes=”.$dateArray[‘minutes’];    echo “Current hours=”.$dateArray[‘hours’];    echo “Current mday=”.$dateArray[‘mday’];    echo “Current wday=”.$dateArray[‘wday’];    echo “Current

Read more