$value
$value :
Standard object wrapper.
This class is used when we need to return a standard object, but none of the current available standard objects fit the role.
isSerialized(string $value, mixed $result = null) : boolean
Checks if a string is serialized using quick string manipulation to throw out obviously incorrect strings. Unserialize is then run on the string to perform the final verification.
Valid serialized forms are the following:
b:1;
i:1;
d:0.2;
s:4:"test";
a:3:{i:0;i:1;i:1;i:2;i:2;i:3;}
O:8:"stdClass":0:{}
N;
string | $value | Value to test for serialized form |
mixed | $result | Result of unserialize() of the $value |
True if $value is serialized data, otherwise false
returnStdObject(mixed $var) : \app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject|\app\framework\Component\StdLib\StdObject\StdObjectWrapper|\app\framework\Component\StdLib\StdObject\StringObject\StringObject
This function make sure you are returning a standard object.
mixed | $var |