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 / array_reduce array_merge unserialize array_count_values arsort
last run:
2021-10-20 07:49:30
14
- PHP 8.0 / array_reduce array_merge unserialize print_r array_count_values
last run:
2023-10-19 10:30:42
13
- / array_reduce array_merge unserialize print_r array_count_values
last run:
2021-10-19 13:38:35
11
- PHP 7.4 / unserialize var_export
last run:
2023-02-05 15:07:42
10
- PHP 7.4 / array_reduce is_array array_merge unserialize array_count_values
last run:
2021-10-19 17:22:40
9
- PHP 8.1 / var_export unserialize
last run:
2022-06-23 11:42:26
6
- / array_reduce array_merge unserialize array_count_values
last run:
2021-10-19 15:16:37
6
- PHP 7.4 / array_reduce array_merge unserialize print_r array_count_values
last run:
2021-10-19 12:14:24
6
- PHP 8.0 / implode array_keys unserialize
last run:
2023-06-30 14:05:35
5
- PHP 8.1 / var_dump unserialize
last run:
2022-08-31 22:39:18
5
unserialize - New snippets
-
PHP 7.4 / MySQL 8.0 unserialize
added at:
2025-04-03 03:42:33
1
-
PHP 7.4 / MySQL 8.0 unserialize
added at:
2025-04-02 00:25:54
1
-
PHP 7.4 / MySQL 8.0 serialize unserialize
added at:
2025-04-02 00:25:10
1
-
PHP 7.4 / MySQL 8.0 serialize unserialize
added at:
2025-04-02 00:24:58
1
-
PHP 7.4 / MySQL 8.0 serialize unserialize
added at:
2025-04-02 00:24:51
1
-
PHP 7.4 / MySQL 8.0 unserialize
added at:
2025-04-02 00:24:11
1
-
PHP 7.4 / MySQL 8.0 unserialize
added at:
2025-04-02 00:22:40
3
-
PHP 7.4 / MySQL 8.0 serialize unserialize
added at:
2025-04-02 00:21:09
2
-
PHP 8.4 / MySQL 8.0 var_dump preg_match_all unserialize base64_decode var_dump preg_match_all unserialize base64_decode
added at:
2025-03-24 12:48:24
1