How can I get the current time,for example, in 10:45:47 am format using php? can anyone help me by answering the above question? Thanks to all.
3 Answers
You can use the date function like this:
echo date('h:i:s a');
See the formatting options for the date function to get more idea about it :)