diff --git a/reference/pdo/pdostatement/fetchall.xml b/reference/pdo/pdostatement/fetchall.xml index 4fd4a00eb6..c78ba185e1 100644 --- a/reference/pdo/pdostatement/fetchall.xml +++ b/reference/pdo/pdostatement/fetchall.xml @@ -12,7 +12,7 @@ arrayPDOStatement::fetchAll intfetch_stylePDO::FETCH_BOTH - intcolumn_index0 + intfetch_argument0 arrayctor_argsarray() @@ -48,12 +48,25 @@ - column_index + fetch_argument - Returns the indicated 0-indexed column when the value of - fetch_style is - PDO::FETCH_COLUMN. + This argument have a different meaning depending on the value of + the fetch_style parameter: + + + + PDO::FETCH_COLUMN: Returns the indicated 0-indexed + column. + + + + + PDO::FETCH_CLASS: Sets a custom class name for which + the fetch results will be stored in. + + + @@ -61,7 +74,8 @@ ctor_args - Arguments of custom class constructor. + Arguments of custom class constructor when the fetch_style + parameter is PDO::FETCH_CLASS.