Overview

Namespaces

  • Rundiz
    • Serializer

Classes

  • Serializer
  • SerializerStatic
  • Overview
  • Namespace
  • Class

Class Serializer

Works with serialization such as check if string is serialized.

Namespace: Rundiz\Serializer
Author: Vee W.
Since: 1.0
Located at Serializer/Serializer.php
Methods summary
public boolean
# isSerialized( string $string )

Is serialized string.

Is serialized string.

Parameters

$string
The string to check.

Returns

boolean
Return true if serialized, false for otherwise.

Link

Reference from WordPress.
Reference from Github cs278/is_serialized.php
public string
# maybeSerialize( mixed $value )

Check first that data is serialized or not, if not then serialize it otherwise return as is.

Check first that data is serialized or not, if not then serialize it otherwise return as is.

Parameters

$value
The data to be serialize.

Returns

string
Return serialized string.
public mixed
# maybeUnserialize( mixed $value )

Check first that data is serialized or not, if yes then unserialize it otherwise return as is.

Check first that data is serialized or not, if yes then unserialize it otherwise return as is.

Parameters

$value
The data to be unserialize.

Returns

mixed
Return unserialized value.

Since

1.0.1
API documentation generated by ApiGen