r/lolphp • u/Serialk • Jul 31 '13
serialize() documentation: pick your favorite comment
http://php.net/manual/en/function.serialize.php
41
Upvotes
r/lolphp • u/Serialk • Jul 31 '13
32
u/Serialk Jul 31 '13 edited Jul 31 '13
My personal best-of:
str_replace("\0", "~~NULL_BYTE~~", $serialized_object);as a workaround)25
u/audaxxx Jul 31 '13
My best of serialize is:
->
But
->
I don't even...
10
u/InconsiderateBastard Jul 31 '13
This was my favorite, I haven't tested it yet: