How can one effectively iterate through multiple arrays retrieved from a MySQL query in PHP without manually listing each column?

When retrieving multiple arrays from a MySQL query in PHP, you can use the `fetch_assoc()` method to fetch each row as an associative array. By using a loop, you can iterate through each row and access the values dynamically without manually listing each column. This allows for a more flexible and scalable approach to processing the retrieved data.

// Assuming $result is the result set from the MySQL query
while ($row = $result->fetch_assoc()) {
    foreach ($row as $key => $value) {
        echo "Column: $key, Value: $value <br>";
    }
}