PHP mysqli_warning_count() Function

PHP mysqli_warning_count() function returns the number of warnings from the last query in the connection.

Syntax

mysqli_warning_count() Function Parameter

ParameterDescription
connection :Required parameter. The MySQL connection to be used

mysqli_warning_count() Function Return Value

Return Values :Number of warnings or zero if there are no warnings.

mysqli_warning_count() Function Example