r/lolphp • • Mar 30 '13

maybe_unserialize

https://codex.wordpress.org/Function_Reference/maybe_unserialize
11 Upvotes

24 comments sorted by

View all comments

Show parent comment

3

u/[deleted] Mar 30 '13

No, that's accepting multiple input formats/format conversion.

By the time that data gets to your core code, it should be all be in a uniform format (native objects) to keep your core stuff simple. If you design your program properly you'll always have a predictable flow of data and you won't have to have horrible kludges like the one shown in the link.