How can the output of print_r() in PHP be interpreted to access specific elements in an array?

When using print_r() in PHP to display the contents of an array, the output can be overwhelming and difficult to interpret. To access specific elements in the array, you can use print_r() along with the desired index or key to display only that particular element. This allows you to easily view and work with specific values within the array.

$array = array("apple", "banana", "cherry");
print_r($array[1]); // This will output "banana"