I want to fetch only one row from a database because I only expect one. However, with fetchAll I always have to unwrap the array first before I can access the meat:
$result = self::$db->fetchAll($select);
$result = $result[0];
Is there a better solution?
You can also use the
fetchRowmethod, i.e.:now you can access column name like this
See
http://framework.zend.com/manual/1.11/en/zend.db.adapter.html#zend.db.adapter.select.fetchrow