How can we get second of the current time using date function?

Answer Posted / shanmuga

echo date('s');

This function will give the seconds of the current time.

Is This Answer Correct ?    52 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me what does the scope of variables means?

525


What are the data types in php?

535


Do you know when sessions ends?

548


What is overriding in php?

605


How to call a php function from html button?

604






What kind of things have you done on the social side?

8576


What is variable function php?

541


Php code to find whether a number armstrong or not?

536


Explain the changes in php versions?

532


Explain how does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?

505


How do you trim spaces in excel?

508


What is the purpose of $_ session?

508


How to block direct directory access in PHP?

547


What is the apache?

521


Write down the code for saving an uploaded file in PHP.

587