Re: [nyphp-talk] style question: returning from a function while you're in a foreach

2013-03-16 Thread Federico Ulfo
+1 for the first, because -3 lines of code -1 variable, but really either are good. >From my iPhone On Mar 15, 2013, at 10:35 PM, Joseph Crawford wrote: I personally would disagree with you on that one. I think the single return point is more confusing. Though that is more of a preference. T

Re: [nyphp-talk] style question: returning from a function while you're in a foreach

2013-03-16 Thread Robert Stoll
I agree, it is a personal preference and I also agree that is a little bit slower (but just a few microseconds) Von: talk-boun...@lists.nyphp.org [mailto:talk-boun...@lists.nyphp.org] Im Auftrag von Joseph Crawford Gesendet: Samstag, 16. März 2013 02:36 An: NYPHP Talk Betreff: Re: [nyphp-talk]