What would happen if the following script were run on a Windows server set to Moscow, Russia’s time zone?
<?php
echo gmmktime(0, 0, 0, 1, 1, 1970);
?>
<?php
echo gmmktime(0, 0, 0, 1, 1, 1970);
?>
A. It would output the number 0
B. It would output the number -1
C. It would output the number 1
D. It would raise an error
E. It would output nothing
Answer: Option B
Related Questions on Date and Timestamp
A. TRUE
B. FALSE
C. Valid
D. Invalid
The date() function returns ___ representation of the current date and/or time.
A. Integer
B. String
C. Boolean
D. Float
If the format is F then which one of the following will be returned?
A. Complete text representation of month
B. Day of month, with leading zero
C. Daylight saving time
D. Day of month, without zeros
Join The Discussion