This isn't so much a problem but (perhaps) a solution.
One of the downfalls of PHP is that it does not allow structs, for example:
Code: Select all
struct REC_PRODUCT
{
TCHAR szProductID[PRODUCTID_SZLEN];
int64 nSalesPrice;
int64 nCostPrice;
TCHAR szSupplierID[SUPPLIERID_SZLEN];
};Code: Select all
class REC_PRODUCT
{
char szProductID[PRODUCTID_SZSLEN];
int nSalesPrice;
int nCostPrice;
char szSupplierID[SUPPLIERID_SZLEN];
}Just a thought.