WordPress.org

Ready to get started?Download WordPress

Forums

WPDB var_dump (4 posts)

  1. crisispictures
    Member
    Posted 8 years ago #

    when I do a var_dump($wpdb), it outputs all the stuff I'd expect it to output as well as the content of all of my Pages.

    weird.

    could someone explain this behavior? I'm trying to understand how the $wpdb object works.

  2. skippy
    Member
    Posted 8 years ago #

    When are you calling the var_dump()? It's likely holding cached data from the last SQL query.

  3. Ryan Boren
    WordPress Dev
    Posted 8 years ago #

    last_result holds the result of the last query. The last query before the var_dump was likely a query for the pages.

  4. crisispictures
    Member
    Posted 8 years ago #

    Well, it's exciting, isn't it.

    I had no idea so much was going on.

    now that I figured out how to use get_object_vars....

    the world is mine.

Topic Closed

This topic has been closed to new replies.

About this Topic