Example #1
0
 static function sql_fetch_array_assoc($req, $vars = array())
 {
     $tmp_req = Bdd::sql_fetch($req, $vars);
     $contenu[0] = 0;
     while ($contenu[] = $tmp_req->fetch(PDO::FETCH_ASSOC)) {
         $contenu[0]++;
     }
     return array_filter($contenu);
     //remove empty value
 }