What Will Be The Output Of The Following Php Code If Date Is #185
What will be the output of the following PHP code if date is 24/02/2008?</p> <pre><code class="language-php" line="1"> <?php $date = new DateTime(); echo $date->format('l,F,js,Y'); ?> </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs107 PHP: Hypertext Preprocessor. It can also be found in gs gs107 PHP File and Session Handling - PHP Dates and Time - Quiz No.1.
What will be the output of the following PHP code if date is 24/02/2008?
<?php $date = new DateTime(); echo $date->format('l,F,js,Y'); ?>
Sunday, February 24th 2008
Sunday, 02 24 2008
Sunday, 24 02 2008
Sunday, 24th February 2008