Doesn't seem that failure mode for that function is documented anywhere I've been able to find....
views:
29answers:
2
+1
A:
you can easily find it out yourself, do a call on that function with a statement which wont find a value, then just do
var_dump($myReturnValue);
and it will print the value including the return type :)
zolex
2010-09-25 01:45:20
Doh! Looks like it returns false on failure -- makes sense I guess because most (all?) RDBMSs don't have a boolean type (one uses TINYINTs or ENUMs instead).
Billy ONeal
2010-09-25 19:36:01
A:
Although the Zend Abstract class states it returns an array, the PDO returns false on failure. Therefore the return is mixed: array or false
Ashley
2010-09-25 10:40:05