A port of php array functions to dart.