unserialize
unserialize — Creates a PHP value from a stored representation.Description
unserialize( string $data,unserialize() takes a single serialized variable and converts it back into a PHP value.
array $options = [] ): mixed
Parameters
data
The serialized string.
If the variable being unserialized is an object, after successfully reconstructing the object PHP will automatically attempt to call the __unserialize() or __wakeup() methods (if one exists).
options
Any options to be provided to unserialize(), as an associative array.
Return Values
The converted value is returned, and can be a bool, int, float, string, array or object. In case the passed string is not unserializeable, false is returned and E_NOTICE is issued.More information about unserialize on official PHP documentation site
unserialize - Popular snippets
- PHP 7.4 / MySQL 5.7 array_reduce array_merge unserialize array_count_values arsort
last run:
2021-10-20 07:49:30
14
- PHP 8.0 / MySQL 5.7 array_reduce array_merge unserialize print_r array_count_values
last run:
2023-10-19 10:30:42
13
- PHP 5.6 / MySQL 5.7 array_reduce array_merge unserialize print_r array_count_values
last run:
2021-10-19 13:38:35
11
- PHP 7.4 / MySQL 5.7 unserialize var_export
last run:
2023-02-05 15:07:42
10
- PHP 7.4 / MySQL 5.7 array_reduce is_array array_merge unserialize array_count_values
last run:
2021-10-19 17:22:40
9
- PHP 8.1 / MySQL 5.7 var_export unserialize
last run:
2022-06-23 11:42:26
6
- PHP 5.6 / MySQL 5.7 array_reduce array_merge unserialize array_count_values
last run:
2021-10-19 15:16:37
6
- PHP 7.4 / MySQL 5.7 array_reduce array_merge unserialize print_r array_count_values
last run:
2021-10-19 12:14:24
6
- PHP 8.0 / MySQL 5.7 implode array_keys unserialize
last run:
2023-06-30 14:05:35
5
- PHP 8.1 / MySQL 5.7 var_dump unserialize
last run:
2022-08-31 22:39:18
5
unserialize - New snippets
-
PHP 8.1 / MySQL 5.7 unserialize array_intersect reset print_r
added at:
2024-03-13 17:38:23
2
-
PHP 8.1 / MySQL 5.7 unserialize in_array print_r
added at:
2024-03-13 17:36:34
1
-
PHP 8.1 / MySQL 5.7 unserialize serialize print_r
added at:
2024-03-13 17:33:42
2
-
PHP 8.1 / MySQL 5.7 var_export unserialize
added at:
2024-02-07 21:26:14
1
-
PHP 8.1 / MySQL 5.7 serialize unserialize var_export
added at:
2024-02-06 11:03:34
1
-
PHP 8.1 / MySQL 5.7 serialize unserialize var_export
added at:
2024-02-06 11:03:21
1
-
PHP 8.1 / MySQL 5.7 serialize unserialize var_export
added at:
2024-02-06 11:02:53
1
-
PHP 8.1 / MySQL 5.7 serialize unserialize var_export
added at:
2024-02-06 11:02:29
1
-
PHP 8.1 / MySQL 5.7 serialize unserialize var_export
added at:
2024-02-06 11:02:21
1
-
PHP 8.1 / MySQL 5.7 var_export unserialize
added at:
2024-02-01 11:18:55
1