Php Three Dimensional Array Example Math