stdClass Object problems
问题 I'm struggling to parse the below data using PHP. An API returns it, and I've tried various syntaxes. How do I return the data in a non-object way? Or, what's the syntax to call the data using the stdClass? Could I convert this to one data based array, or even two? I'm lost when it comes to object-based data sets. stdClass Object ( [0] => stdClass Object ( [district] => stdClass Object ( [state] => NY [number] => 29 ) ) [1] => stdClass Object ( [district] => stdClass Object ( [state] => NY