public function loadRowList($key = null)
	{
		// Initialise variables
		$rows = [];

		// Execute the query
		if (!$this->execute())
		{
			return null;
		}

		// Get all of the rows from the result set as arrays
		while ($row = $this->fetchArray())
		{
			if ($key !== null)
			{
				$rows[$row[$key]] = $row;
			}
			else
			{
				$rows[] = $row;
			}
		}

		// Free up system resources and return
		$this->freeResult();

		return $rows;
	}
public function loadRowList($key = null)
	{
		// Initialise variables
		$rows = [];

		// Execute the query
		if (!$this->execute())
		{
			return null;
		}

		// Get all of the rows from the result set as arrays
		while ($row = $this->fetchArray())
		{
			if ($key !== null)
			{
				$rows[$row[$key]] = $row;
			}
			else
			{
				$rows[] = $row;
			}
		}

		// Free up system resources and return
		$this->freeResult();

		return $rows;
	}
public function loadRowList ( $ key = null ) { // Initialise variables $ rows = [ ] ; // Execute the query if ( ! $ this -> execute ( ) ) { return null ; } // Get all of the rows from the result set as arrays while ( $ row = $ this -> fetchArray ( ) ) { if ( $ key !== null ) { $ rows [ $ row [ $ key ] ] = $ row ; } else { $ rows [ ] = $ row ; } } // Free up system resources and return $ this -> freeResult ( ) ; return $ rows ; }
Gets an array of the result set rows from the database query where each row is an array.  The array
of objects can optionally be keyed by a field offset, but defaults to a sequential numeric array.

NOTE: Choosing to key the result array by a non-unique field can result in unwanted
behavior and should be avoided.

@param   string  $key  The name of a field on which to key the result array
@return  array|null
@since   2.0.0
Gets an array of the result set rows from the database query where each row is an array . The array of objects can optionally be keyed by a field offset but defaults to a sequential numeric array .