nuggets of php functionality