Posted 23 July 2012 - 12:54 AM
I don't understand why you need to do a brake there, as the rest of the if don't execute. If you want to check if there is an zero in the array, it's better to use in_array(). break is something you should be very restrictive with, usually only use when you write switch-case statements or in very specific situations, this is not one of them in my opinion.
I'm a System developer at XLENT Consultant Group mainly working with SugarCRM.
Please DO NOT send mail or PM to me with programming questions, post them in the appropriate forum instead, where I and others can answer you.