A problem I can see is that BMax requires you to know the type of array, the arrays in PHP can hold variable values.
You *could* do it with objects I suppose, but I've no doubt there'll be problems doing it.
You *could* do it with objects I suppose, but I've no doubt there'll be problems doing it.