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 / MySQL 8.0 array_push print_r
last run:
2022-06-19 19:35:37
35
- PHP 8.0 / MySQL 5.7 printf phpversion print_r
last run:
2022-06-22 14:10:47
22
- PHP 8.0 / MySQL 5.7 print_r
last run:
2022-06-20 18:37:37
20
- PHP 8.0 / MySQL 5.7 preg_match print_r
last run:
2021-08-23 20:56:54
18
- PHP 7 / MySQL 5.7 print_r
last run:
2022-04-05 16:31:53
16
- PHP 8.0 / MySQL 5.7 printf phpversion print_r
last run:
2021-06-07 00:38:02
16
- PHP 8.0 / MySQL 5.7 print_r
last run:
2022-06-15 09:47:07
14
- PHP 8.1 / MySQL 5.7 print_r array_column
last run:
2022-06-22 13:13:16
12
- PHP 8.1 / MySQL 5.7 trigger_error print_r
last run:
2022-05-08 13:35:58
12
- PHP 5 / MySQL 8.0 rand print_r array_sum
last run:
2022-01-11 18:30:05
12
print_r - New snippets
-
PHP 7 / MySQL 5.7 shuffle print_r array_slice
added at:
2022-07-02 09:00:41
5
-
PHP 7 / MySQL 5.7 shuffle print_r array_slice
added at:
2022-07-02 08:59:57
2
-
PHP 7 / MySQL 5.7 shuffle print_r array_slice
added at:
2022-07-02 08:59:50
1
-
PHP 7 / MySQL 5.7 shuffle print_r
added at:
2022-07-02 08:58:36
4
-
PHP 7 / MariaDB 10 print_r
added at:
2022-07-01 10:09:31
2
-
PHP 8.1 / MySQL 5.7 array_merge print_r
added at:
2022-07-01 05:58:59
1
-
PHP 5 / MySQL 5.7 array_merge print_r
added at:
2022-07-01 05:57:58
6
-
PHP 5 / MySQL 5.7 array_merge print_r
added at:
2022-07-01 05:57:34
1
-
PHP 5 / MySQL 5.7 array_merge print_r
added at:
2022-07-01 05:56:05
1
-
PHP 8.1 / MySQL 5.7 array_merge print_r
added at:
2022-07-01 05:56:02
1