PHP mysqli_fetch_assoc() Function

PHP mysqli_fetch_assoc() function is used to fetch results row as an associative.

Syntax

mysqli_fetch_assoc() Function Parameter

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

mysqli_fetch_assoc() Function Return Value

Return Values :Returns an associative array of strings that corresponds to the fetched row, or FALSE if there are no more rows.

mysqli_fetch_assoc() Function Example