Get data type:1. If you want to see the value and type of an expression, use Var_dump ().2. If you just want an easy-to-read type of expression for debugging, use GetType ().3. To view a type, do not use GetType () and use the Is_type ()
Replace, concat, and cast character string functions in mysql need to export a personal information of job-seeking users. This information requires three-table joint query requirements: birthdate format: 1990.01.02 Database: Gender display: men and
This article analyzes the usage differences between floating-point (float) and integer (integer) data types in PHP and, in that case, insufficient data lengths.
The value can only be true or false, and when other types are converted to Boolean, the
An integer is a number in the collection ℤ= {..., 2,-1, 0, 1, 2, ...}.
Grammar
Integer values can be expressed in decimal, hexadecimal, octal, or binary notation, preceded by an optional symbol (-or +).
The binary representation of the integer is
The value can only be True or False. When other types are converted to the boolean type, the following values are considered FALSE:The Boolean value is FALSE.The integer value 0 (0)The floating point value is 0.0 (0)Empty string and string "0"Array
That is, if you assign a string value to the variable Var,var it becomes a string. If you assign an integer value to Var, it becomes an integer.
The type casts in PHP are very similar to those in C: precede the variables to be converted with the
The PHP method, Asp method, MsSQL method, and MySQL method for converting an IP address to an integer. First, we need to first understand the principle of converting an IP address to an integer (in strict terms, it should be a long integer ~
Type casts in PHP are very similar to those in C: precede the variables to be converted with the target type enclosed in parentheses.
The allowed casts are:
(int), (integer)-Convert to integral type
(bool), (Boolean)-Convert to Boolean
(float), (
That is, if you assign a string value to the variable Var,var it becomes a string. If you assign an integer value to Var, it becomes an integer.
The type casts in PHP are very similar to those in C: precede the variables to be converted with the
This article provides a detailed analysis of the PHP, Asp, MsSQL, and MySQL methods for converting IP addresses to integer numbers. For more information, see
This article provides a detailed analysis of the PHP, Asp, MsSQL, and MySQL methods for
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.