Contao\Database\Result::fetchAllAssoc PHP Method

fetchAllAssoc() public method

Fetch all rows as associative array
public fetchAllAssoc ( ) : array
return array An array with all rows
    public function fetchAllAssoc()
    {
        $this->reset();
        $arrReturn = array();
        while (($arrRow = $this->fetchAssoc()) !== false) {
            $arrReturn[] = $arrRow;
        }
        return $arrReturn;
    }