Roadmap to becoming a developer in 2022
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

615 B

print_r

The print_r function in PHP is used to print human-readable information about a variable, ranging from simple values to more complex, multi-dimensional arrays and objects. It's exceptionally helpful while debugging, providing more information about the variable's contents than the echo or print functions. For example, in the code $array = array('apple', 'banana', 'cherry'); print_r($array);, it will display Array ( [0] => apple [1] => banana [2] => cherry ). Further information about the print_r function can be found at the PHP documentation.