The getdate() function returns An integer A floating-point number A Boolean A string An array TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following statements can be used to set the time zone in individual scripts? date_set_default_timezone(‘Europe/London’); date_set_timezone(‘Europe/London’); date_default_timezone(‘Europe/London’); date_default_timezone_set(‘Europe/London’); TRUE ANSWER : ? YOUR ANSWER : ?
To create an object and set the date to JUNE 22, 2013, which one of the following statement should be executed? $date = DateTime(“22 JUNE 2013”) $date = new DateTime(“22 JUNE 2013”) $date = new Date(“JUNE 22 2013”) $date = Date(“22 JUNE 2013”) TRUE ANSWER : ? YOUR ANSWER : ?
What is the difference, in seconds, between the current timestamp in the GMT time zone and the current timestamp in your local time zone? It depends on the number of hours between the local time zone and GMT None of these The two will never match The two will only match if the local time zone is GMT There is no difference TRUE ANSWER : ? YOUR ANSWER : ?
................Checks a date for numeric validity. verifydate check_date checkdate Verify_date TRUE ANSWER : ? YOUR ANSWER : ?
Say you want to calculate the date 45 days from the present date which one of the following statement will you use? strtotime(“+45 days”) totime(“+45”) totime(“+45 days”) strtotime(“-45 days”) TRUE ANSWER : ? YOUR ANSWER : ?
What would happen if the following script were run on a Windows server set to Moscow, Russia’s time zone?<br/>echo gmmktime(0, 0, 0, 1, 1, 1970); It would output the number -1 It would output the number 1 It would output nothing It would output the number 0 TRUE ANSWER : ? YOUR ANSWER : ?
................ Formats a local time or date according to locale settings. stritime strgtime strftime strhtime TRUE ANSWER : ? YOUR ANSWER : ?
Among the four PHP DateTimeZone classes given below how many are static?<br/>1. listAbbreviations()<br/>2. getName()<br/>3. getOffset()<br/>4. listIdentifiers() 2 4 1 3 TRUE ANSWER : ? YOUR ANSWER : ?