Home / CSE / PHP - CS :: Functions in PHP

CSE :: PHP - CS

  1. phpinfo() will display about?
    1. OS version information
    2. PHP installation
    3. Variables
    4. HTTP headers

  2. A.

     Option 1

    B.

     Option 2

    C.

     Option 3

    D.

     Option 4

    E.

     All the Above


  3.  . . . . returns a new DateTime object.

  4. A.

     getdate()

    B.

     date_create()

    C.

     date_sunrise()

    D.

     date()


  5. It is always necessary to use parentheses with the print function.

  6. A.

     True

    B.

     False


  7. The below statement will return.

    $Var = substr(""abcdef"", -4, 1);

  8. A.

     returns "f"

    B.

     returns "d"

    C.

     returns "c"

    D.

     returns "cd"


  9. Returning values from functions may include .....

  10. A.

     Arrays

    B.

     Objects

    C.

     Both A & B

    D.

     None of above


  11. The arguments in a function are evaluated from .....

  12. A.

     left to right

    B.

     right to left

    C.

     sometimes left to right and sometimes right to left

    D.

     Always right to left


  13. strlen() returns the length of the string on success and . . . . if the string is empty.

  14. A.

     -1

    B.

     NULL

    C.

     Garbage value

    D.

     0