Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

  1. Which one of the following statements instantiates the mysqli class?

  2. A.

     mysqli = new mysqli()

    B.

     $mysqli = new mysqli()

    C.

     $mysqli->new.mysqli()

    D.

     mysqli->new.mysqli()

    View Answer

    Workspace

    Answer : Option B

    Explanation :

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


Be The First To Comment