Use the define () function in php to define a constant. The so-called constant refers to the amount of constant values. This article has collected several articles about PHP constants, hoping to help you understand php constants. let's take a look. 1. define PHP constants and explain constants using instances. we can understand constants as constant values. Once defined, constants cannot be changed anywhere in the script. Definition of constants: constants are composed of letters, underscores, and numbers. However, note that the first letter of a constant cannot start with a number. Use the define () function in .. php to define a constant. The so-called constant refers to the amount of constant values. This article has collected several articles about PHP constants, hoping to help you understand php constants. let's take a look. 1. define PHP constants and explain constants using instances. we can understand constants as constant values. Once defined, constants cannot be changed anywhere in the script. Definition of constants: constants are composed of letters, underscores, and numbers. However, note that the first letter of a constant cannot start with a number. In PHP, we use the define () function to define constants. the syntax of the define () function is as follows: 2. for details about PHP predefined constants, we can use PHP's predefined constants to obtain information in PHP. for example, we can use the operating system of the current computer and the current PHP version information. Some predefined constants commonly used by PHP are as follows: __file _ default constant, PHP program FILE name; __line _ default constant, PHP program
1. summary of the concepts of php constants
Summary: This article lists general Js type detection methods, which are a small part of building a Js knowledge system. 1. there are five basic data types in Js: Undefined, Null, Boolean, String, Number (including NaN) NaN and any types of values, including NaN; isNaN is used to determine whether the value is NaN type 2. type determination 1. isFinite (number) is not infinite. if it is not true, if it is NaN, or positive or negative infinity, or if it is not a number, false 2 is returned. typeof operation ..
[Related Q & A recommendations ]:
Javascript-about variables in the vue method.
How to return an empty Promise object in angular. js-Angularjs1.5
Php-Laravel5.4 + Vue cannot be bound to the simplest data.
In ios-UIKit, what is the uicecemodelassociation protocol used?
Javascript-Vue is not defined
The above is a detailed article about the php define () function. For more information, see other related articles in the first PHP community!