odbc_field_len
PHP function
Edit on GitHub ✎
(PHP 4, PHP 5, PHP 7, PHP 8)
Get the length (precision) of a field
Description
odbc_field_len(Odbc\Result $statement, int $field): int|false
Gets the length of the field referenced by number in the given result identifier.
Parameters
statementObject.
fieldThe field number. Field numbering starts at 1.
Return Values
Returns the field length, or false on error.
Changelog
| Version | Description |
|---|
See Also
odbc_field_scale()to get the scale of a floating point number