print_r

PHP 4, PHP 5, PHP 7, PHP 8
print_r - Prints human-readable information about a variable
Manual
Code Examples

Example #1 print_r example

Result: <pre> Array ( [a] => apple [b] => banana [c] => Array ( [0] => x [1] => y [2] => z ) ) </pre>
PHP Version:

Example #2 <span class='function-parameter'>return</span> parameter example

PHP Version: