The following introduces the difference between include() statement and require() statement in PHP code:
1. Different loading methods and error handling methods
include() statement can be placed in the flow control of the program. When the program is executed When it arrives, load the file in. When an error occurs (such as the file does not exist), only a warning will be generated. The require() statement is generally placed at the beginning of the program, and the file will be loaded when the program is executed. When an error occurs (such as the file does not exist), an error will be reported and the script will be terminated.
include_once() includes and Run the file. If the file is already included, it will not be included again.
require_once() first checks whether the file has been loaded during script execution. If it has been loaded, it will not be loaded again. For example, a file defines a type. An error will occur if the file is loaded twice
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i
').text(i)); }; $numbering.fadeIn(1700); }); });