The mysqli_info() function returns a text string containing information about the last executed
query. It works with operations that affect multiple rows at once or alter the table structure.
Practical use: Instead of just guessing what happened, this function tells you the number of matched rows (Rows matched), changed rows (Changed), and any warnings. Look at the example for a bulk insert:
INSERT INTO ... SELECT (tells us the number of inserted rows).UPDATE (tells us how many rows were actually changed).ALTER TABLE (information about table alteration).LOAD DATA INFILE (file import statistics).