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 var_dump unserialize
added at:
2024-12-26 14:01:10
1
-
PHP 8.1 / MySQL 5.7 var_dump unserialize
added at:
2024-12-26 13:20:04
1
-
PHP 8.1 / MySQL 5.7 var_dump unserialize
added at:
2024-12-26 13:18:36
1
-
PHP 8.1 / MySQL 5.7 print_r unserialize
added at:
2024-12-26 13:02:52
1
-
PHP 8.1 / MySQL 5.7 print_r unserialize
added at:
2024-12-26 12:52:29
1
-
PHP 8.1 / MySQL 5.7 var_dump unserialize base64_decode
added at:
2024-12-11 13:30:35
1
-
PHP 8.1 / MySQL 5.7 var_dump unserialize base64_decode
added at:
2024-12-11 07:44:14
1
-
PHP 8.1 / MySQL 5.7 var_dump unserialize base64_decode
added at:
2024-12-11 07:43:48
1
-
PHP 8.1 / MySQL 5.7 var_dump unserialize base64_decode
added at:
2024-12-11 07:43:23
1
-
PHP 8.1 / MySQL 5.7 var_dump unserialize base64_decode
added at:
2024-12-11 07:42:48
1