PhpSerialize::encode

public static PhpSerialize::encode($data)

Encodes data into the serialization format.

Parameters

mixed $data: The data to encode.

Return value

string The encoded data.

Overrides SerializationInterface::encode

File

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

Class

PhpSerialize
Default serialization for serialized PHP.

Namespace

Drupal\Component\Serialization

Code

public static function encode($data) {
  return serialize($data);
}
doc_Drupal
2016-10-29 09:33:57
Comments
Leave a Comment

Please login to continue.