How many constants does the DateTime class have in php 5.6?
Dhanashri Bhuyar from Mumbai, India is saying 10 is correct answer
AHMED SOULIMANI from Casablanca, Morocco is saying 11 is correct answer
nikita pawar from Pune, India is saying 8 is correct answer
ayush from Mumbai, India is saying 9 is correct answer
preeti from Kolkata, India is saying 9 is correct answer
What would happen if the following script were run on a Windows server set to Moscow, Russia’s time zone?
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
What will the following script output?
$time = strtotime ('2004/01/01');
echo date ('H:\i:s', $time);
- [A] 00:00:00
- [B] 12:00:00
- [C] 00:i:00
- [D] 12:i:00
- [E] -1
What is the difference, in seconds, between the current timestamp in the
GMT time zone and the current timestamp in your local time zone?
- [A] It depends on the number of hours between the local time zone and GMT
- [B] There is no difference
- [C] The two will only match if the local time zone is GMT
- [D] The two will never match
- [E] None of the above
- [A] 12
- [B] 6
- [C] 3
- [D] 9