Discover php predefined constants, include the articles, news, trends, analysis and practical advice about php predefined constants on alibabacloud.com
In PHP, you can use predefined constants to obtain information in PHP. Common predefined constants are as follows: In PHP, you can use predefined constants to obtain information in PHP.
Common predefined constants in PHP are as follows:
1. Magic Constants
There are eight magic constants in PHP, and their values change as they change position in the code. These special constants are case insensitive.
Line: Returns the current row number in the file. Can also be written in
Set of system constants and predefined constants in ThinkPHP. The ThinkPHP system constants and predefined constants are summarized as follows: 1. system constants: THINK_PATHThinkPHP system directory: APP_PATH current project directory APP_NAME
This article mainly introduces ThinkPHP system constants and predefined constants. If you need them, you can refer to the ThinkPHP system constants and predefined constants as follows:
1. System constants:
THINK_PATH // ThinkPHP system
An object is called when it is instantiated. When _ construct and a function with the class name coexist, __construct will be called, and the other will not be called.
1. magic functions
(13)
1. _ construct ()
An object is called when it is
This article mainly introduces ThinkPHP system constants and predefined constants. if you need them, refer to ThinkPHP.
The ThinkPHP system constants and predefined constants are summarized as follows:
1. system constants:
THINK_PATH // ThinkPHP
This paper summarizes the constants commonly used in thinkphp3.x. Share to everyone for your reference, specific as follows:
First, predefined constants
url_common=0 Normal Mode URLUrl_pathinfo=1 PathInfo URLurl_rewrite=2 REWRITE URLurl_compat=3
This section describes the introduction of include, include_oncerequire, and require_once constants to the file and constants. in the previous article, we discussed the application of functions, but it is only used to call functions in a file. when
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.