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 / session_start time session_unset session_destroy var_export
last run:
2022-10-08 20:45:50
35
- PHP 8.0 / var_export json_decode array_reduce array_values
last run:
2023-11-30 18:57:30
29
- PHP 8.0 / rand var_export array_sum
last run:
2021-12-20 17:22:48
27
- PHP 8.2 / MySQL 8.0 str_replace var_export
last run:
2025-03-21 14:59:23
24
- PHP 8.0 / var_export array_map array_reverse func_get_args
last run:
2024-05-05 12:41:00
23
- PHP 8.2 / MySQL 8.0 Sakila (ReadOnly) array_map var_export
last run:
2024-01-08 10:17:42
18
- PHP 8.2 / MySQL 8.0 Sakila (ReadOnly) array_combine var_export
last run:
2024-04-17 11:53:26
15
- PHP 8.2 / MySQL 8.0 var_export
last run:
2025-03-22 03:09:57
14
- PHP 8.0 / MariaDB 10 printf phpversion var_export
last run:
2023-10-06 08:21:51
13
- PHP 8.1 / array_merge var_export
last run:
2023-08-16 14:38:33
12
var_export - New snippets
-
PHP 8.4 / MySQL 8.0 sort ctype_digit implode count var_export
added at:
2025-04-03 04:55:46
1
-
PHP 8.4 / MySQL 8.0 count implode ctype_digit var_export preg_replace
added at:
2025-04-02 00:37:11
1
-
PHP 8.4 / MySQL 8.0 sort ctype_digit implode count var_export preg_replace
added at:
2025-04-02 00:20:27
1
-
PHP 8.4 / MySQL 8.0 ctype_digit var_export preg_replace
added at:
2025-04-02 00:00:51
1
-
PHP 7.4 / MariaDB 11.4 date var_export var_dump
added at:
2025-03-31 15:46:30
1
-
PHP 7.4 / MariaDB 11.4 date var_export var_dump
added at:
2025-03-31 15:45:43
1
-
PHP 8.4 / MariaDB 11.5 var_export strpos
added at:
2025-03-24 10:41:18
1
-
PHP 8.4 / MariaDB 11.5 var_export strpos
added at:
2025-03-24 10:41:12
1
-
PHP 8.4 / MariaDB 11.5 var_export strpos
added at:
2025-03-24 10:41:07
1
-
PHP 8.3 / PostgreSQL 10 Bookings (ReadOnly) preg_match var_export
added at:
2025-03-18 15:04:14
1