check if a variable is of type mysqli object?

mysqli, php

Solution

Try the `instanceof` operator, the `is_a` function or the `get_class` function:

$var instanceof MySQLi
is_a($var, 'mysqli')
is_object($var) && get_class($var) == 'mysqli'

Problem

how do i check if a variable is of a type mysqli object?

Original source