Get your own PHP server
object(stdClass)#1 (3) {
  [0]=>
  string(5) "Volvo"
  [1]=>
  string(3) "BMW"
  [2]=>
  string(6) "Toyota"
}
object(stdClass)#2 (3) {
  ["Peter"]=>
  string(2) "35"
  ["Ben"]=>
  string(2) "37"
  ["Joe"]=>
  string(2) "43"
}

Indexed arrays converts into objects with the index number as property name and the value as property value.

Associative arrays converts into objects with the keys as property names and values as property values.