fuel/fuel/core/classes/database/result.php
public function get($name, $default = null)
	{
		$row = $this->current();

		if ($this->_as_object)
		{
			if (isset($row->$name))
			{
				return $row->$name;
			}
		}
		else
		{
			if (isset($row[$name]))
			{
				return $row[$name];
			}
		}

		return \Fuel::value($default);
	}
public function get($name, $default = null)
	{
		$row = $this->current();

		if ($this->_as_object)
		{
			if (isset($row->$name))
			{
				return $row->$name;
			}
		}
		else
		{
			if (isset($row[$name]))
			{
				return $row[$name];
			}
		}

		return \Fuel::value($default);
	}
public function get ( $ name , $ default = null ) { $ row = $ this -> current ( ) ; if ( $ this -> _as_object ) { if ( isset ( $ row -> $ name ) ) { return $ row -> $ name ; } } else { if ( isset ( $ row [ $ name ] ) ) { return $ row [ $ name ] ; } } return \ Fuel :: value ( $ default ) ; }
Return the named column from the current row.

// Get the "id" value
$id = $result->get('id');

@param   string $name    column to get
@param   mixed  $default default value if the column does not exist

@return  mixed
Return the named column from the current row .