Answer Posted / amol
By Using function Date in php
Definition and Usage
The getdate() function returns an array that contains date
and time information for a Unix timestamp.
The returning array contains ten elements with relevant
information needed when formatting a date string:
* [seconds] - seconds
* [minutes] - minutes
* [hours] - hours
* [mday] - day of the month
* [wday] - day of the week
* [year] - year
* [yday] - day of the year
* [weekday] - name of the weekday
* [month] - name of the month
Is This Answer Correct ? | 16 Yes | 6 No |
Post New Answer View All Answers
Write a program to find the factorial of a number in php?
Which is faster for or foreach php?
What is difference between print_r and echo in php?
Can a trait extend a class php?
Which function would you use to insert a record into a database in php?
What is the function file_get_contents() useful for?
What is substr() in php? And how it is used?
Is php 5 still supported?
How to find datatype of variable in php?
Is ruby on rails php?
What are the advantages of using php?
What version of php do I have windows?
What is php constructor?
How do I install php and apache on windows 10?
What are php libraries?