title: PHP json_encode return rows as objects instead of arrays
body: <p>I am using json_encode() to encode array into json format. but it returning object instead of array. I want to return an array not an object.
  any body have any idea?</p>