src/Neevo/Result.php
public function fetchSingle(){
		$this->performed || $this->run();
		$row = $this->connection->getDriver()->fetch($this->resultSet);

		if(!$row)
			return false;
		$value = reset($row);

		// Type converting
		if($this->detectTypes)
			$this->detectTypes();
		if(!empty($this->columnTypes)){
			$key = key($row);
			if(isset($this->columnTypes[$key]))
				$value = $this->convertType($value, $this->columnTypes[$key]);
		}

		return $value;
	}
public function fetchSingle(){
		$this->performed || $this->run();
		$row = $this->connection->getDriver()->fetch($this->resultSet);

		if(!$row)
			return false;
		$value = reset($row);

		// Type converting
		if($this->detectTypes)
			$this->detectTypes();
		if(!empty($this->columnTypes)){
			$key = key($row);
			if(isset($this->columnTypes[$key]))
				$value = $this->convertType($value, $this->columnTypes[$key]);
		}

		return $value;
	}
public function fetchSingle ( ) { $ this -> performed || $ this -> run ( ) ; $ row = $ this -> connection -> getDriver ( ) -> fetch ( $ this -> resultSet ) ; if ( ! $ row ) return false ; $ value = reset ( $ row ) ; // Type converting if ( $ this -> detectTypes ) $ this -> detectTypes ( ) ; if ( ! empty ( $ this -> columnTypes ) ) { $ key = key ( $ row ) ; if ( isset ( $ this -> columnTypes [ $ key ] ) ) $ value = $ this -> convertType ( $ value , $ this -> columnTypes [ $ key ] ) ; } return $ value ; }
Fetches the first value from current row.
@return mixed
Fetches the first value from current row .