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:
2023-03-21 10:39:55
91
- PHP 8.0 / MySQL 5.7 printf phpversion print_r
last run:
2023-02-11 17:18:25
62
- PHP 7.4 / MySQL 5.7 mt_rand count print_r
last run:
2023-03-15 14:02:45
53
- PHP 8.1 / MySQL 5.7 str_split array_rand shuffle print_r
last run:
2022-11-13 07:45:25
34
- PHP 7.4 / MySQL 5.7 mysqli_query mysqli_num_rows ceil print_r
last run:
2023-03-24 20:44:22
34
- PHP 8.0 / MySQL 5.7 mysqli_query mysqli_num_rows ceil print_r
last run:
2023-03-24 20:44:22
34
- PHP 8.1 / MySQL 5.7 mysqli_query mysqli_num_rows ceil print_r
last run:
2023-03-24 20:44:22
31
- PHP 5.6 / MySQL 5.7 mysqli_query mysqli_num_rows ceil print_r
last run:
2023-03-24 20:44:21
31
- PHP 7.4 / MySQL 8.0 rand min print_r array_sum
last run:
2022-09-29 20:44:59
27
- PHP 8.0 / MySQL 5.7 print_r
last run:
2023-01-19 05:16:17
23
print_r - New snippets
-
PHP 8.2.3 / MySQL 5.7 print_r printf
added at:
2023-03-25 16:29:42
2
-
PHP 8.2.3 / MySQL 5.7 print_r printf
added at:
2023-03-25 16:29:27
1
-
PHP 8.0 / MySQL 5.7 print_r
added at:
2023-03-24 11:25:19
1
-
PHP 8.0 / MySQL 5.7 print_r
added at:
2023-03-24 11:22:23
1
-
PHP 8.0 / MySQL 5.7 print_r
added at:
2023-03-24 11:19:20
1
-
PHP 8.0 / MySQL 5.7 array_count_values print_r array_filter
added at:
2023-03-24 11:09:55
1
-
PHP 8.0 / MySQL 5.7 array_count_values print_r array_filter
added at:
2023-03-24 11:09:13
1
-
PHP 8.1 / MySQL 5.7 print_r date strtotime explode count
added at:
2023-03-23 14:32:17
1
-
PHP 8.1 / MySQL 5.7 print_r date strtotime
added at:
2023-03-23 10:22:30
1
-
PHP 8.1 / MySQL 5.7 print_r date strtotime
added at:
2023-03-23 10:22:24
1