阅读背景:

如何从foreach循环中的对象获取属性值?

来源:互联网 

I iterate through an array(using a foreach loop) that contains two 'High Season' objects - the two objects have an id, start date and end date. I get the high season start date via getter and assign it to a variable with intentions of incrementing the month when I loop through the date difference of the high season's start date and end date. When I loop through the date difference, the Booking start date and end date are compared against the variable I have been incrementing by month, and then the variable "containing" the date is incremented by one month.I iterate through an array(using a foreach loop




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: