PHP Preserialiser