Answer & Solution
print_r()
function in PHP is used to print a human-readable representation of a variable, including its data type and contents. It is commonly used for debugging purposes to display the structure and contents of arrays, objects, and other complex data types.