PHP mysqli_fetch_lengths() Function

PHP mysqli_fetch_lengths() function returns the lengths of the columns of the current row in the result set.

Syntax

mysqli_fetch_lengths() Function Parameter

ParameterDescription
result :Required parameter. Mention a result set identifier returned by mysqli_query().

mysqli_fetch_lengths() Function Return Value

Return Values :Returns size of each field as array of integer. 0 if an error occurs

mysqli_fetch_lengths() Function Example