cubrid_field_len

설명

cubrid_fetch_len 함수는 지정된 필드의 길이를 반환하고, 실패하면 FALSE를 반환한다.

구문

string cubrid_field_len ( int $result , int $field_offset )

예제

<?php

$result = cubrid_execute($link, "SELECT id,email FROM people WHERE id = '42'");

if (!$result) {

echo 'Could not run query: ' .cubrid_error_msg();

exit;

}

// Will get the length of the id field as specified in the database

// schema.

$length = cubrid_field_len($result, 0);

echo $length;

?>