random1 Posted October 2, 2008 Share Posted October 2, 2008 How do you print out information about a PHP object? for example I have a 'database' class object and when I print_r($database); I get: mysqli Object ( ) does this mean the object is not set correctly? The information I'm looking for in this case is the connection id. Link to comment https://forums.phpfreaks.com/topic/126710-how-print-out-object-information/ Share on other sites More sharing options...
hawkenterprises Posted October 2, 2008 Share Posted October 2, 2008 var_dump, but I would believe you got what you wanted. Mysqli Object() is a null Mysql database object. You probably need to run some methods to get a connection handler Link to comment https://forums.phpfreaks.com/topic/126710-how-print-out-object-information/#findComment-655384 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.