Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function fetch_all() {
- $json_object;
- $json_objects = array();
- while($this->fetch_row()){
- $json_object=json_encode($this->row);
- $json_objects[]=$json_object;
- }
- for ($n=0; $n<count($json_objects); $n++){
- $json_objects[$n]=json_decode($json_objects[$n],true);
- }
- return $json_objects;
- }
Advertisement
Add Comment
Please, Sign In to add comment