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-05-31 20:58:17
12
- 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 serialize
added at:
2023-08-28 13:01:44
1
-
PHP 8.1 / MySQL 5.7 unserialize print_r serialize
added at:
2023-08-28 13:01:14
1
-
PHP 8.1 / MySQL 5.7 unserialize serialize
added at:
2023-08-28 12:57:12
1
-
PHP 8.1 / MySQL 5.7 print_r unserialize
added at:
2023-08-28 12:55:20
1
-
PHP 8.1 / MySQL 5.7 unserialize
added at:
2023-07-10 03:48:09
1
-
PHP 5.6 / MySQL 5.7 unserialize implode
added at:
2023-06-30 15:02:33
3
-
PHP 7.4 / MySQL 5.7 unserialize implode
added at:
2023-06-30 14:44:08
1
-
PHP 8.0 / MySQL 5.7 unserialize implode
added at:
2023-06-30 14:35:08
1
-
PHP 8.0 / MySQL 5.7 unserialize implode
added at:
2023-06-30 14:34:58
1
-
PHP 8.0 / MySQL 5.7 unserialize print_r
added at:
2023-06-30 14:34:06
2