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-12-12 14:03:15
188
- PHP 7.4 / MySQL 5.7 mysqli_query mysqli_num_rows ceil print_r
last run:
2024-09-03 16:55:19
182
- PHP 5.6 / MySQL 5.7 mysqli_query mysqli_num_rows ceil print_r
last run:
2024-09-03 16:55:18
181
- PHP 8.0 / MySQL 5.7 mysqli_query mysqli_num_rows ceil print_r
last run:
2024-09-03 16:55:20
181
- PHP 8.1 / MySQL 5.7 mysqli_query mysqli_num_rows ceil print_r
last run:
2024-09-03 16:55:21
178
- PHP 8.1 / MySQL 5.7 array_push print_r
last run:
2024-12-04 13:29:33
153
- PHP 8.0 / MySQL 5.7 printf phpversion print_r
last run:
2024-09-26 11:31:52
119
- PHP 8.2.13 / MySQL 5.7 rand print_r sort array_count_values
last run:
2023-08-22 16:55:49
60
- PHP 7.4 / MySQL 5.7 mt_rand count print_r
last run:
2023-03-15 14:02:45
53
- PHP 8.2.13 / MySQL 8.0 print_r
last run:
2024-11-17 22:54:12
51
print_r - New snippets
-
PHP 8.1 / MySQL 5.7 print_r
added at:
2024-12-09 07:53:33
1
-
PHP 8.1 / MySQL 5.7 print_r unserialize
added at:
2024-12-06 15:55:30
1
-
PHP 8.1 / MySQL 5.7 print_r unserialize
added at:
2024-12-06 15:50:21
1
-
PHP 8.1 / MySQL 8.0 openssl_encrypt openssl_decrypt print_r explode
added at:
2024-12-06 03:35:03
1
-
PHP 8.1 / MySQL 8.0 openssl_encrypt openssl_decrypt print_r explode
added at:
2024-12-06 03:32:08
1
-
PHP 8.1 / MySQL 8.0 openssl_encrypt openssl_decrypt print_r explode
added at:
2024-12-06 03:31:14
1
-
PHP 8.1 / MySQL 8.0 openssl_encrypt openssl_decrypt print_r explode
added at:
2024-12-06 03:30:56
2
-
PHP 8.1 / MySQL 8.0 openssl_encrypt openssl_decrypt print_r explode
added at:
2024-12-06 03:30:26
1
-
PHP 8.1 / MySQL 5.7 print_r
added at:
2024-12-06 00:27:51
1
-
PHP 8.2.13 / PostgreSQL 15 print_r var_dump
added at:
2024-12-05 13:27:38
1