public function convert($data)
    {
        if (empty($data) || ($out = @serialize($data)) === false)
            return null;

        return $out;
    }
public function convert($data)
    {
        if (empty($data) || ($out = @serialize($data)) === false)
            return null;

        return $out;
    }
public function convert ( $ data ) { if ( empty ( $ data ) || ( $ out = @ serialize ( $ data ) ) === false ) return null ; return $ out ; }
Converts some input to a serialized string

@param mixed $data Input as an array, String, Object, and so on
@return null|string null at fault, string on success
Converts some input to a serialized string