Contao\Database\Result::fetchAssoc PHP Méthode

fetchAssoc() public méthode

Fetch the current row as associative array
public fetchAssoc ( ) : array | false
Résultat array | false The row as associative array or false if there is no row
    public function fetchAssoc()
    {
        if ($this->intIndex >= $this->count() - 1) {
            return false;
        }
        $this->arrCache = $this->resultSet[++$this->intIndex];
        return $this->arrCache;
    }