getdate() function returns an array that contains date and time information for unix system
the returning array contain ten elements with relevant information needed when formatting a date
getdate(timestamp)
Program
the returning array contain ten elements with relevant information needed when formatting a date
- [seconds]-seconds
- [minutes]-minutes
- [hours]-hours
- [mday]-day of month
- [wday]-day of week
- [year]-year
- [yday]-day of year
- [weekday]-name of the weekday
- [month]-name of the month
getdate(timestamp)
Program
<?php $today=getdate(date("U")); print("$today[weekday],today[month]],today[mday],today[year]"); ?> |
Output
0 comments:
Post a Comment