Loop termination: the Break jumps out of the entire loop, and the rest of the loop body does not need to be executed. Continue: jumps out of the current loop and ends only the current loop body, while the remaining loop bodies Continue to run. The process control statements can be nested. There may be loops in which there are branches in which there are loops in which there are... "> <LINKhref =" http://www.php100.com//statics/style/
Loop termination: the Break jumps out of the entire loop, and the rest of the loop body does not need to be executed. Continue: jumps out of the current loop and ends only the current loop body, while the remaining loop bodies Continue to run. The process control statements can be nested. It may be that there are branches in the loop, and there are loops in the loop. When there is a loop in the loop, we call it a multi-cycle! For example, to delete a multiplication table: if a break or continue is written in multiple cycles, the loop that directly contains the break or continue is controlled. If we need to end multiple loops at the same time, we should add a parameter after break or continue to indicate the number of loops that have exceeded (ended. The parameter is an integer 1 that indicates a layer of default. 2 indicates layer 2. And so on. Continue can also be used as described above. There are also some exceptions: when a switch occurs in the loop statement, if it needs to be terminated: because php internally treats swtich as a loop. The file contains one php file and another php file. IncludeRequire the file name can be a relative or absolute address. Relative Address: the address of the file to be loaded, relative to the current file. Absolute address: start with a drive letter on windows to reach the real address of a file. If it starts with a slash (/) in linux, for example, loading a File: usually in a php project, there are many absolute addresses. The above include and require functions are identical, so there is no difference in usage and effect. The requirement level for the target file to be loaded is different: if the target file is incorrect, different error levels are generated. Include require Include_onceRequire_once is loaded once. before loading, the system first checks whether the target script has been loaded into the current script. If it has been loaded, it will not be reloaded. It is different from loading without once. The difference between Include_once and required_once: The difference is the same as that between include and require: Using Return in a function to use return outside the function is equivalent to stopping script execution. However, when return is written to the loaded script, the behavior changes. if it is written to the target file, the meaning of return is: the target file 36.php loads the file: we receive the return value of include. we usually use this feature to create the project configuration file: Configuration File: Where the configuration is used: Job for ($ I = 0; $ I <= 10; $ I ++) {switch ($ I) {case 3: echo 'swtich '; break 2; // continue 2;} echo $ I;} the code is as above, if break is changed to continue, try to explain the reason.