Facts About Age Discrimination. Who the ADEA Protects. The Age Discrimination in Employment Act of 1967 (ADEA) protects applicants and employees who are 40 years of age or older from employment discrimination based on age. Who the ADEA Covers The ADEA applies to private employers with 20 or more employees, state and local governments, employment agencies, labor organizations and the federal government.
The For Loop. The for loop is used when you know in advance how many times the script should run. Explanation: The example below defines a loop that starts with i=0. The loop will continue to run as long as i is less than, or equal to 10. i will increase by 1 each time the loop runs. Note: The increment parameter could also be negative, and the <= could be any comparing statement. How to use the for loop to loop through the different HTML headers.
Difference in While Loop and do While loop. In while loop the condition is checked at the starting of the loop and if it is true then the code inside the loop is executed. This process is repeated till the condition becomes false. In case of do while loop the checking of condition is done at the end of the loop. So even if the condition is false, the script inside the loop is executed at least once. This is the basic difference between do while loop and while loop. Let us start with one simple script with a do while loop to understand the syntax. Here the condition is checked at the end of the loop so the code inside the loop is executed for once. $i=1; do{.