Home » PHP » PHP MySQL Database » Question
  1. Which one of the following statements instantiates the mysqli class?
    1. mysqli->new.mysqli()
    2. $mysqli->new.mysqli()
    3. mysqli = new mysqli()
    4. $mysqli = new mysqli()
    5. None of these
Correct Option: D

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



Your comments will be displayed only after manual approval.