Programming - PHP

41.

Which of the following variable is used to get user's browser and operating system details in PHP ?

Answer

Answer :

Option A
42.

Which of the following PHP functions can be used to generate unique id based on the microtime ?

Answer

Answer :

Option A
43.

The var_dump() function displays

Answer

Answer :

Option B
44.

Which one of the following is the correct way of declaring a namespace ?

Answer

Answer :

Option A

Explanation :


Namespaces are declared using the namespace keyword. A file containing a namespace must declare the namespace at the top of the file before any other code - with one exception: the declare keyword.
45.

Which of the following method acts as a destructor function in a PHP class ?

Answer

Answer :

Option B
Jump to page number :