A collection of php utility functions