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

mysqli_fetch_object()

The mysqli_fetch_object() function returns the current row of a result set as an object. The field names returned by this function are case-sensitive.

EXAMPLE
RESULT
The result will be displayed here...

Practical use: This approach is very popular in object-oriented programming (OOP). Instead of using square brackets $row["fruit"], we use the arrow operator $object->fruit.