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

Answer Posted / rahul

$second = date('s');



echo $second;

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of htmlspecialchars in php?

517


Php program to generate fibonacci series?

537


Which is the latest version of php?

528


What is boolean in php?

515


What is trim function in php?

604






How to create a table to store files?

544


What is the Default syntax used in PHP?

585


What is meant by an associative array?

501


Define anonymous classes in php7?

550


What is difference between session_unset and session_destroy?

495


What is constructor and destructor?

514


Tell me what is the use of isset() in php?

527


What type of language is php?

510


Why do you need to filter out empty files?

523


How cookies are transported from browsers to servers?

488