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()
Answers
Answered by
1
Hi there,
Option B is correct.
If you choose to interact with MySQL server using the object-oriented interface, you need to first instantiate the mysqli class via its constructor..
Option B is correct.
If you choose to interact with MySQL server using the object-oriented interface, you need to first instantiate the mysqli class via its constructor..
Answered by
0
______✨ HEY MATE ✨______
➡️Option (B) $mysqli = new mysqli() is the right answer ✔️
➡️Option (B) $mysqli = new mysqli() is the right answer ✔️
Similar questions
Science,
7 months ago
Math,
7 months ago
Math,
1 year ago
Computer Science,
1 year ago
Hindi,
1 year ago