php - Using AND vs && in a for loop (Not related to precedence?) -


Why is it that this code prints "Hello!" Four times and then prints "1":

   

However this is "Hello!" Does not print exactly and then prints "1":

   

I know more & amp; Amp; There is different precedences, but that does not seem to apply here. What am I missing? (I am using a type of code above, because I will use $ blah inside the loop, and I want to set the value for it) Thanks for any help!

@OP, please read the doctor. This example illustrates the difference between # 1 logical operators


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -