For

Array & Loop Example Suppose we have a form and we want from user to select from a list of check boxes and check his favorite choices, post that data as an array and we want to display that data by calling array and arranging it in a loop. Then for this purpose consider following [...]

{ read more }

by Hiroshi on June 21st, 2008

For loop consists of three phases. i.e. Define Condition Increment or decrement First we define something. Then we apply a condition and then under that condition we increment or decrement that defined thing. In complex way; – The first part is an expression that is evaluated once when the loop begins. – The second part [...]

{ read more }