I have an object $rows
If I use echo $rows the content is displayed in my html page, however I would like to select only some parts of the content but I cannot see inside the variable how it is structured…
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have you looked at var_dump and friends? var_dump() works purely through side effects, so it’s great as a debug aid but useless if you want to do something else with the info it spits out. That’s when you reach for var_export() and maybe print_r().
A similar question here on SO shows additional ways to inspect your object – get_object_vars() for the object’s state, for instance.