To get second of the current time using date function writes the following code. $second = date(\"s\");
To get second of the current time using date function writes the following code.
$second = date("s");