Class Object Array Php Functions