PHP: CI_HW_relational_foreach