How can the print_r function be utilized for visualizing arrays in PHP during practice exercises?

When working with arrays in PHP, it can be challenging to visualize the structure and contents of the array for debugging purposes. The `print_r` function in PHP can be used to display the array in a human-readable format, making it easier to understand its contents. By using `print_r` during practice exercises, you can quickly see the elements of the array and troubleshoot any issues.

// Sample array
$fruits = array("apple", "banana", "orange");

// Visualize the array using print_r
print_r($fruits);