Examveda
Examveda

Which one of the following statements instantiates the mysqli class?

A. mysqli = new mysqli()

B. $mysqli = new mysqli()

C. $mysqli->new.mysqli()

D. mysqli->new.mysqli()

Answer: Option B

Solution(By Examveda Team)

If you choose to interact with MySQL server using the object-oriented interface, you need to first instantiate the mysqli class via its constructor.

This Question Belongs to PHP >> Databases Handling

Join The Discussion

Related Questions on Databases Handling