What will be the output of the following PHP code if date is 24/02/2008?<br/>$date = new DateTime();<br/>echo $date->format('l,F,js,Y') Sunday, February 24th 2008 Sunday, 02 24 2008 Sunday, 24th February 2008 Sunday, 24 02 2008 TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following format parameter can be used to identify timezone? I E N T TRUE ANSWER : ? YOUR ANSWER : ?
The getdate() function returns A Boolean A string An array An integer A floating-point number TRUE ANSWER : ? YOUR ANSWER : ?
................ Formats a local time or date according to locale settings. strhtime stritime strftime strgtime TRUE ANSWER : ? YOUR ANSWER : ?
Among the four PHP DateTimeZone classes given below how many are nonstatic?<br/>1. _construct()<br/>2. getName()<br/>3. getOffset()<br/>4. getTransitions() 3 1 2 4 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>If say date is 22/06/2013.<br/>printf( date("t") ) 22 JUNE 30 2013 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 = new Date(“JUNE 22 2013”) $date = new DateTime(“22 JUNE 2013”) $date = Date(“22 JUNE 2013”) $date = DateTime(“22 JUNE 2013”) TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following statements can be used to set the time zone in individual scripts? date_default_timezone(‘Europe/London’); date_default_timezone_set(‘Europe/London’); date_set_default_timezone(‘Europe/London’); date_set_timezone(‘Europe/London’); TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is the right way to use the DateTime class? $date = class DateTime; $date = new class DateTime(); $date = new DateTime(); $date = get_Class(DateTime); TRUE ANSWER : ? YOUR ANSWER : ?