How can the array_chunk() function in PHP be used to manipulate arrays for displaying content?

When displaying content from an array in PHP, you may need to group the elements into smaller chunks for better presentation. The `array_chunk()` function can be used to split an array into chunks of a specified size. This can be particularly useful when displaying data in rows or columns on a webpage.

// Example usage of array_chunk() to display content in rows
$data = array("Apple", "Banana", "Cherry", "Date", "Elderberry", "Fig", "Grape");

$chunked_data = array_chunk($data, 3);

foreach ($chunked_data as $chunk) {
    echo "<div class='row'>";
    foreach ($chunk as $item) {
        echo "<div class='col'>" . $item . "</div>";
    }
    echo "</div>";
}