Are there any specific guidelines for displaying array data within PHP functions for debugging purposes?

When debugging PHP code that involves arrays, it can be helpful to display the array data for inspection. One common way to do this is by using the `print_r()` or `var_dump()` functions. These functions will output the contents of the array in a readable format, making it easier to identify any issues or unexpected values.

// Example of displaying array data for debugging purposes
$array = [1, 2, 3, 4, 5];

// Using print_r() to display the array data
echo '<pre>';
print_r($array);
echo '</pre>';

// Using var_dump() to display the array data
echo '<pre>';
var_dump($array);
echo '</pre>';