Saturday, November 5, 2016

if($conn instanceof mysqli)

is_object($conn);  
is_a($conn, 'mysqli');  
if($conn instanceof mysqli){...}    

http://php.net/manual/en/function.is-a.php

No comments:

Post a Comment