How can the syntax error "unexpected 'new' (T_NEW)" be avoided when trying to instantiate a class with a mysqli connection in PHP?

To avoid the syntax error "unexpected 'new' (T_NEW)" when trying to instantiate a class with a mysqli connection in PHP, make sure to use the correct syntax for creating a new object instance. The correct syntax for creating a new mysqli object is to use the 'new' keyword followed by the class name 'mysqli'.

// Correct way to instantiate a mysqli object
$mysqli = new mysqli('localhost', 'username', 'password', 'database');