Functions to assist in working with PHP serialized variables