update : 2015.11.03
php.shukuma.com검색:
|
maxdb_fetch_lengthsmaxdb_result::lengths(PECL maxdb >= 1.0) maxdb_fetch_lengths -- maxdb_result::lengths — Returns the lengths of the columns of the current row in the result set 설명절차식 형식
array maxdb_fetch_lengths
( resource
$result
)객체 기반 형식 array $maxdb_result->lengths;
The maxdb_fetch_lengths() function returns an array containing the
lengths of every column of the current row within the result set represented by the
반환값
An array of integers representing the size of each column (not including
any terminating null characters).
maxdb_fetch_lengths() is valid only for the current row of the result set.
It returns 예제Example #1 객체 기반 형식
<?php Example #2 절차식 형식
<?php 위 예제의 출력 예시: Field 1 has Length 4 Field 2 has Length 3 Field 3 has Length 5 Field 4 has Length 6 Field 5 has Length 5 Field 6 has Length 21 |