The difference between require, include and use in php. The difference between include and require. require include performance. lua include require.

WBOY
Release: 2016-07-29 08:53:14
Original
2060 people have browsed it

The difference between require and include is just that the error is reported when the file does not exist. The former stops the script and the latter continues execution. They all import a file, execute the imported file after the introduction, and continue to execute the current file after the execution is completed.
So the parameter value is the file address, use the left slash "/";

use is to use the namespace, so the parameter value is the namespace, use the right slash ""

The namespace and the file path do not necessarily correspond directly !

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces the distinction between require, include, and use in PHP, including the content of require and include. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!