$stmt = $mysqli->prepare("CALL my_stored_procedure()"); $stmt->execute(); do { // Process current result set // ... } while ($stmt->more_results() && $stmt->next_result()); $stmt->close();In this example, $mysqli is a mysqli object representing a database connection. We prepare and execute a stored procedure that returns multiple result sets using $stmt->execute(). We then use a do-while loop to process each result set using $stmt->more_results() to check if there are more results, and $stmt->next_result() to move to the next result set. Finally, we close the statement using $stmt->close(). In conclusion, mysqli more_results is a useful function in PHP's mysqli package for handling multi-queries that return multiple result sets.