This class serializes and unserializes binary data, so you can read and write binary data files for exchange with programs written in languages like C and Pascal.
Currently the class is able to handle just the following types: signed integers (small 8 bits, short 16 bits, int 32 bits), unsigned integers (byte 8 bits, word 16 bits, dword 32 bits) and floating point (IEEE754 float 32 bits and double 64 bits).
The endianess of the binary values representation can also be configured with the class.
RDF API for PHP is a software package for parsing, manipulating and serializing RDF models. It is based on the Stanford RDF API by Sergey Melnik.
Its features include:
+ statement centric methods for manipulating an RDF model as a set of RDF triples
+ integrated parser
+ integrated serializer
+ support for xml:base and xml:lang directives
+ support for blank nodes
This class can be used to declare arrays as constants.
It serializes a given array value to a string and assigns it a given constant.
The class can also do the opposite, i.e retrieve the original constant array value by unserializing the value assigned to the constant.
In Version 2.0.0 arrConst got an advance feature of
accessing the value of a particular element of the Array Constant
The get method is overloaded for this purpose [;) I know actual overloading is not possible in PHP ]
This class can be used to store and retrieve objects in MySQL table records.
It serializes and unserializes objects to store and retrieve it in a given table. It can also query, update and delete an object given the identifier used to store it in the MySQL table.
The class can also create the necessary tables to store objects of different classes.
This class can be used to serialize objects with cyclic references.
It can take an object value and generate a string that represents the information contained in the object.
The class can also do the opposite, i.e. process a string with an object representation and recreate the original object value.
The class takes care of cyclic object references, i.e. objects that reference other objects and those objects contain references back to the original objects.
It uses object keys to represent object values and detect cyclic references.