⇧
vadnica-logo
My Services About the Project Telegram O meni O meni

mysqli_fetch_lengths()

The mysqli_fetch_lengths() function returns an array of numbers, where each number represents the length (number of characters) of each field in the last fetched row.

EXAMPLE
RESULT
The result will be displayed here...

Practical use: Instead of writing long code to count characters, this function instantly tells us the content length. Look at the example below, where we print the fruit name and its length: