Zend 版本1.12.3 官网如今最新的Zend1版本 php
Zend\Db\Statement.php fetch
没事看源码发现的由于是Zend就分享下 this
代码以下 .net
public function fetchColumn($col = 0) { $data = array(); //无用 $col = (int) $col; $row = $this->fetch(Db::FETCH_NUM); if (!is_array($row)) { return false; } return $row[$col]; }
http://www.oschina.net/code/explore/ZendFramework-1.11.1/library/Zend/Db/Statement.php code