original_string: private function where($where) {
          if(is_array($where) && !empty($where)) {
              $wherefields = array();
              foreach($where as $field => $value) {
                  $wherefields[] = $this->formatValues($field, $value);
              }
              if(!empty($wherefields)) {
                  return " WHERE ".implode(' AND ', $wherefields);
              }
          }
          return false;
      }
code: private function where($where) {
          if(is_array($where) && !empty($where)) {
              $wherefields = array();
              foreach($where as $field => $value) {
                  $wherefields[] = $this->formatValues($field, $value);
              }
              if(!empty($wherefields)) {
                  return " WHERE ".implode(' AND ', $wherefields);
              }
          }
          return false;
      }
code_tokens: private function where ( $ where ) { if ( is_array ( $ where ) && ! empty ( $ where ) ) { $ wherefields = array ( ) ; foreach ( $ where as $ field => $ value ) { $ wherefields [ ] = $ this -> formatValues ( $ field , $ value ) ; } if ( ! empty ( $ wherefields ) ) { return " WHERE " . implode ( ' AND ' , $ wherefields ) ; } } return false ; }
docstring: This outputs the SQL where query based on a given array
  @param array $where This should be an array that you wish to create the where query for in the for array('field1' => 'test') or array('field1' => array('>=', 0))
  @return string|false If the where query is an array will return the where string and set the values else returns false if no array sent
docstring_tokens: This outputs the SQL where query based on a given array