print_r
print_r — Prints human-readable information about a variable.Description
print_r( mixed $value,print_r() displays information about a variable in a way that's readable by humans. print_r(), var_dump() and var_export() will also show protected and private properties of objects. Static class members will not be shown.
bool $return = false ): string|bool
Parameters
value
The expression to be printed.
return
If you would like to capture the output of print_r(), use the return parameter. When this parameter is set to true, print_r() will return the information rather than print it.
Return Values
If given a string, int or float, the value itself will be printed. If given an array, values will be presented in a format that shows keys and elements. Similar notation is used for objects. When the return parameter is true, this function will return a string. Otherwise, the return value is true.More information about print_r on official PHP documentation site
print_r - Popular snippets
- PHP 7.4 / MySQL 8.0 array_push print_r
last run:
2025-04-11 21:48:54
190
- PHP 7.4 / mysqli_query mysqli_num_rows ceil print_r
last run:
2025-01-31 18:00:39
185
- PHP 8.0 / mysqli_query mysqli_num_rows ceil print_r
last run:
2025-01-31 18:00:40
184
- / mysqli_query mysqli_num_rows ceil print_r
last run:
2025-01-31 15:45:23
182
- PHP 8.1 / mysqli_query mysqli_num_rows ceil print_r
last run:
2025-01-31 18:00:41
181
- PHP 8.1 / array_push print_r
last run:
2025-01-29 17:00:51
174
- PHP 8.0 / printf phpversion print_r
last run:
2025-01-08 06:26:28
121
- PHP 8.2 / rand print_r sort array_count_values
last run:
2023-08-22 16:55:49
60
- PHP 8.2 / MySQL 8.0 print_r
last run:
2025-02-12 02:43:40
53
- PHP 7.4 / mt_rand count print_r
last run:
2023-03-15 14:02:45
53
print_r - New snippets
-
PHP 8.4 / MySQL 8.0 curl_init curl_setopt curl_exec curl_close print_r json_decode
added at:
2025-04-15 12:34:45
1
-
PHP 8.4 / MySQL 8.0 print_r
added at:
2025-04-13 16:12:47
1
-
PHP 8.4 / MariaDB 11.4 explode str_replace print_r
added at:
2025-04-13 15:56:07
1
-
PHP 8.4 / MySQL 8.0 array_push print_r
added at:
2025-04-11 21:53:34
1
-
PHP 8.4 / MySQL 8.0 array_push print_r
added at:
2025-04-11 21:52:41
1
-
PHP 8.4 / MySQL 8.0 array_push print_r
added at:
2025-04-11 21:52:26
1
-
PHP 8.1 / MySQL 8.0 print_r mysqli_query mysqli_fetch_all var_dump
added at:
2025-04-10 14:32:02
1
-
PHP 8.1 / MySQL 8.0 print_r mysqli_query mysqli_fetch_all
added at:
2025-04-10 14:31:34
1
-
PHP 8.1 / MySQL 8.0 print_r mysqli_query mysqli_fetch_all
added at:
2025-04-10 14:02:14
1
-
PHP 8.1 / MySQL 8.0 print_r mysqli_query mysqli_fetch_all
added at:
2025-04-10 14:01:25
1