PHP » GoLang |
login |
register |
about
|
GoLang maxdb_fetch_lengths
request it (313)
GoLang replacement for PHP's maxdb_fetch_lengths
[edit | history]
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 DescriptionProcedural style
array maxdb_fetch_lengths
( resource
$result
)Object oriented style 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
Return Values
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 ExamplesExample #1 Object oriented style
<?php Example #2 Procedural style
<?php The above example will output something similar to: 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 |
more
Recently updated
more
Most requested
|