Daniel BaldwinDeveloper + Techie

A handy function for PHP that checks if a string is actually something that has been serialized

A nice function taken from WordPress that allows you to check if a string is serialized. This is handy because for some weird reason it isn’t enough that unserialize() returns false but it also has to throw a notice. Using this function helps you to avoid the whole notices issue.