public function getResultArray(): array
	{
		if (! empty($this->resultArray))
		{
			return $this->resultArray;
		}

		// In the event that query caching is on, the result_id variable
		// will not be a valid resource so we'll simply return an empty
		// array.
		if (is_bool($this->resultID) || ! $this->resultID || $this->numRows === 0)
		{
			return [];
		}

		if ($this->resultObject)
		{
			foreach ($this->resultObject as $row)
			{
				$this->resultArray[] = (array) $row;
			}

			return $this->resultArray;
		}

		is_null($this->rowData) || $this->dataSeek(0);
		while ($row = $this->fetchAssoc())
		{
			$this->resultArray[] = $row;
		}

		return $this->resultArray;
	}
public function getResultArray(): array
	{
		if (! empty($this->resultArray))
		{
			return $this->resultArray;
		}

		// In the event that query caching is on, the result_id variable
		// will not be a valid resource so we'll simply return an empty
		// array.
		if (is_bool($this->resultID) || ! $this->resultID || $this->numRows === 0)
		{
			return [];
		}

		if ($this->resultObject)
		{
			foreach ($this->resultObject as $row)
			{
				$this->resultArray[] = (array) $row;
			}

			return $this->resultArray;
		}

		is_null($this->rowData) || $this->dataSeek(0);
		while ($row = $this->fetchAssoc())
		{
			$this->resultArray[] = $row;
		}

		return $this->resultArray;
	}
public function getResultArray ( ) : array { if ( ! empty ( $ this -> resultArray ) ) { return $ this -> resultArray ; } // In the event that query caching is on, the result_id variable // will not be a valid resource so we'll simply return an empty // array. if ( is_bool ( $ this -> resultID ) || ! $ this -> resultID || $ this -> numRows === 0 ) { return [ ] ; } if ( $ this -> resultObject ) { foreach ( $ this -> resultObject as $ row ) { $ this -> resultArray [ ] = ( array ) $ row ; } return $ this -> resultArray ; } is_null ( $ this -> rowData ) || $ this -> dataSeek ( 0 ) ; while ( $ row = $ this -> fetchAssoc ( ) ) { $ this -> resultArray [ ] = $ row ; } return $ this -> resultArray ; }
Returns the results as an array of arrays.

If no results, an empty array is returned.

@return array
Returns the results as an array of arrays .