Methods |
public
|
fetchNumeric(): array<int, mixed>|false
Returns the next row of the result as a numeric array or FALSE if there are no more rows.
Returns the next row of the result as a numeric array or FALSE if there are no more rows.
Throws
Implemented by
|
#
|
public
|
fetchAssociative(): array<string, mixed>|false
Returns the next row of the result as an associative array or FALSE if there are no more rows.
Returns the next row of the result as an associative array or FALSE if there are no more rows.
Throws
Implemented by
|
#
|
public
|
fetchOne(): mixed|false
Returns the first value of the next row of the result or FALSE if there are no more rows.
Returns the first value of the next row of the result or FALSE if there are no more rows.
Throws
Implemented by
|
#
|
public
|
fetchAllNumeric(): array<int, array<int, mixed>>
Returns an array containing all of the result rows represented as numeric arrays.
Returns an array containing all of the result rows represented as numeric arrays.
Throws
Implemented by
|
#
|
public
|
fetchAllAssociative(): array<int, array<string, mixed>>
Returns an array containing all of the result rows represented as associative arrays.
Returns an array containing all of the result rows represented as associative arrays.
Throws
Implemented by
|
#
|
public
|
fetchFirstColumn(): array<int, mixed>
Returns an array containing the values of the first column of the result.
Returns an array containing the values of the first column of the result.
Throws
Implemented by
|
#
|
public
|
rowCount(): int|string
Returns the number of rows affected by the DELETE, INSERT, or UPDATE statement that produced the result.
Returns the number of rows affected by the DELETE, INSERT, or UPDATE statement that produced the result.
If the statement executed a SELECT query or a similar platform-specific SQL (e.g. DESCRIBE, SHOW, etc.),
some database drivers may return the number of rows returned by that query. However, this behaviour
is not guaranteed for all drivers and should not be relied on in portable applications.
Returns
|
#
|
public
|
columnCount(): int
Returns the number of columns in the result
Returns the number of columns in the result
Returns
The number of columns in the result. If the columns cannot be counted,
this method must return 0.
|
#
|
public
|
free(): void
Discards the non-fetched portion of the result, enabling the originating statement to be executed again.
Discards the non-fetched portion of the result, enabling the originating statement to be executed again.
Implemented by
|
#
|