manusoftar

Untitled

Oct 25th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. public function fetch_all() {
  2.         $json_object;
  3.         $json_objects = array();
  4.         while($this->fetch_row()){
  5.                 $json_object=json_encode($this->row);
  6.                 $json_objects[]=$json_object;  
  7.          }
  8.          for ($n=0; $n<count($json_objects); $n++){
  9.                     $json_objects[$n]=json_decode($json_objects[$n],true);
  10.          }
  11.            
  12.         return $json_objects;
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment