public static function PhpSerialize::decode

public static PhpSerialize::decode($raw)

Decodes data from the serialization format.

Parameters

string $raw: The raw data string to decode.

Return value

mixed The decoded data.

Overrides SerializationInterface::decode

File

core/lib/Drupal/Component/Serialization/PhpSerialize.php, line 20

Class

PhpSerialize
Default serialization for serialized PHP.

Namespace

Drupal\Component\Serialization

Code

public static function decode($raw) {
  return unserialize($raw);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Serialization!PhpSerialize.php/function/PhpSerialize::decode/8.1.x