Jump to content

A sane var_dump()?


alkahest
 Share

Recommended Posts

Is there a way to do a var_dump() in PW without getting a massive incomprehensible array returned? The amount of data that's inside the object is so extensive that it often crashes the browser.

Is there a wrapper function that's just for debugging?

Link to comment
Share on other sites

Well, I have something as simple as a list of US states and their children (which are Schools). The US states just have a title, as do the Schools.

I have looped through all the states and split them into two arrays for display purposes. All I want to do is var_dump the array that contains the objects, but PW spits out an insane 20 page novel about the contents of the states and their children. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...