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 / MySQL 5.7 array_reduce array_merge unserialize array_count_values arsort
last run:
2021-10-20 07:49:30
14
- PHP 5 / MySQL 5.7 array_reduce array_merge unserialize print_r array_count_values
last run:
2021-10-19 13:38:35
11
- PHP 7 / MySQL 5.7 array_reduce is_array array_merge unserialize array_count_values
last run:
2021-10-19 17:22:40
9
- PHP 8.0 / MySQL 5.7 array_reduce array_merge unserialize print_r array_count_values
last run:
2021-10-19 17:39:18
8
- PHP 8.1 / MySQL 5.7 var_export unserialize
last run:
2022-06-23 11:42:26
6
- PHP 5 / MySQL 5.7 array_reduce array_merge unserialize array_count_values
last run:
2021-10-19 15:16:37
6
- PHP 7 / 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 unserialize print_r
last run:
2022-02-18 10:39:08
5
- PHP 8.0 / MySQL 5.7 array_reduce array_merge unserialize array_count_values arsort print_r key
last run:
2021-10-19 18:14:18
5
- PHP 7 / MySQL 5.7 array_reduce is_array array_merge unserialize array_count_values print_r
last run:
2021-10-19 17:41:17
5
unserialize - New snippets
-
PHP 8.1 / MySQL 5.7 unserialize print_r
added at:
2022-06-27 07:30:14
1
-
PHP 8.1 / MySQL 5.7 unserialize print_r
added at:
2022-06-24 12:27:28
1
-
PHP 8.1 / MySQL 5.7 unserialize print_r
added at:
2022-06-24 12:27:00
1
-
PHP 8.1 / MySQL 5.7 unserialize print_r
added at:
2022-06-24 12:13:14
4
-
PHP 5 / MySQL 5.7 var_export unserialize
added at:
2022-06-23 10:34:11
1
-
PHP 8.1 / MySQL 5.7 var_export unserialize
added at:
2022-06-23 10:03:02
6
-
PHP 8.1 / MySQL 5.7 var_export serialize unserialize
added at:
2022-06-23 10:02:57
1
-
PHP 8.1 / MySQL 5.7 var_export serialize unserialize
added at:
2022-06-23 10:02:28
1
-
PHP 8.1 / MySQL 5.7 var_export serialize unserialize
added at:
2022-06-23 10:01:45
1
-
PHP 8.1 / MySQL 5.7 var_export serialize unserialize
added at:
2022-06-23 10:01:39
1