Since php does not allow indexing function return values last time I checked, there is also that obstacle to creating sensible APIs.