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. Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.