Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

  1. What will be the output of the following PHP code?

    <?php

    echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');

    ?>

  2. A.

     TRUE

    B.

     FALSE

    C.

     Valid

    D.

     Invalid

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    April has 30 days and the above date is 31 therefore Invalid is returned.


Be The First To Comment