Home > PHP > Function > Mssql > mssql_field_length()

mssql_field_length()

mssql_field_length - Get the length of a field

Syntax

int mssql_field_length (resource $result, int $offset)

Arguments

  • result - The result resource that is being evaluated. This result comes from a call to mssql_query().
  • offset - The field offset, starts at 0. If omitted, the current field is used.

Description

Returns the length of field no. offset in result.

Version

PHP 4, 5, PECL odbtp >= 1.1.1

Return value

The length of the specified field index on success or FALSE on failure.