lots of php functions for ci