var_export
var_export — Outputs or returns a parsable string representation of a variable.Description
var_export( mixed $value,var_export() gets structured information about the given variable. It is similar to var_dump() with one exception: the returned representation is valid PHP code.
bool $return = false ): string|null
Parameters
value
The variable you want to export.
return
If used and set to true, var_export() will return the variable representation instead of outputting it.
Return Values
Returns the variable representation when the return parameter is used and evaluates to true. Otherwise, this function will return null.More information about var_export on official PHP documentation site
var_export - Popular snippets
- PHP 8.1 / MySQL 5.7 session_start time session_unset session_destroy var_export
last run:
2022-10-08 20:45:50
35
- PHP 8.0 / MySQL 5.7 var_export json_decode array_reduce array_values
last run:
2023-11-30 18:57:30
29
- PHP 8.0 / MySQL 5.7 rand var_export array_sum
last run:
2021-12-20 17:22:48
27
- PHP 8.0 / MySQL 5.7 var_export array_map array_reverse func_get_args
last run:
2024-05-05 12:41:00
23
- PHP 8.2.13 / MySQL 8.0 str_replace var_export
last run:
2024-10-23 21:36:51
20
- PHP 8.2.13 / MySQL 8.0 Sakila (ReadOnly) array_map var_export
last run:
2024-01-08 10:17:42
18
- PHP 8.2.13 / MySQL 8.0 Sakila (ReadOnly) array_combine var_export
last run:
2024-04-17 11:53:26
15
- PHP 8.0 / MariaDB 10 printf phpversion var_export
last run:
2023-10-06 08:21:51
13
- PHP 8.1 / MySQL 5.7 array_merge var_export
last run:
2023-08-16 14:38:33
12
- PHP 8.2.13 / MySQL 5.7 var_export
last run:
2023-01-17 22:47:27
12
var_export - New snippets
-
PHP 8.2.13 / MySQL 8.0 var_export
added at:
2024-11-19 23:09:20
1
-
PHP 8.2.13 / MySQL 8.0 var_export var_export
added at:
2024-11-19 23:06:46
1
-
PHP 8.2.13 / MySQL 8.0 var_export
added at:
2024-11-19 23:06:38
1
-
PHP 7.4 / MySQL 5.7 var_export array_map array_reverse func_get_args
added at:
2024-11-19 18:51:15
1
-
PHP 8.0 / MySQL 5.7 var_export array_map array_reverse func_get_args str_split
added at:
2024-11-19 18:50:32
1
-
PHP 8.0 / MySQL 5.7 var_export array_map array_reverse func_get_args
added at:
2024-11-19 18:49:24
2
-
PHP 8.0 / MySQL 5.7 var_export array_map array_reverse func_get_args
added at:
2024-11-19 18:49:17
1
-
PHP 8.0 / MySQL 5.7 var_export array_map array_reverse func_get_args
added at:
2024-11-19 18:49:05
1
-
PHP 8.2.13 / MySQL 8.0 var_export
added at:
2024-11-15 06:19:50
1