Home / CSE / PHP - CS :: Basic PHP

CSE :: PHP - CS

  1. Some PHP code might not have a namespace and therefore lives in the . . . . . . namespace.

  2. A.

     Default 

    B.

     Global

    C.

     PRE

    D.

     Automatic


  3. All classes in the same namespace or subnamespace don’t have to the declared in the same PHP file.

  4. A.

     TRUE

    B.

     FALSE


  5. It is possible to create a hierarchy of namespaces in PHP.

  6. A.

     TRUE

    B.

     FALSE


  7. The value of __NAMESPACE__ is a string that contains the current namespace name. In global, un-namespaced code, it contains . . . . . .

  8. A.

     NULL

    B.

     0

    C.

     an empty string

    D.

     gibberish value