PECL CUBRID >= 8.3.0
cubrid_field_flags - Return a string with the flags of the given field offset
Code Examples

cubrid_field_flags( resource$result, int$field_offset ): string

This function returns a string with the flags of the given field offset separated by space. You can split the returned value using explode. The possible flags could be: not_null, primary_key, unique_key, foreign_key, auto_increment, shared, reverse_index, reverse_unique and timestamp.



result comes from a call to cubrid_execute


The numerical field offset. The field_offset starts at 0. If field_offset does not exist, an error of level E_WARNING is also issued.

Return Values

A string with flags, when process is successful.

false when invalid field_offset value.

-1 if SQL sentence is not SELECT.

Example of cubrid_field_flags

Show all examples for cubrid_field_flags

PHP Version:

Function cubrid_field_flags:

CUBRID Functions

Most used PHP functions