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 ()
If you convert an object to an object, it will not change. If any other type of value is converted to an object, an instance of the built-in class StdClass will be created. If the value is NULL , the new instance is empty. Converting an array into
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
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
In other words, if you assign a string value to a variable var,var, it becomes a string. If you assign an integer value to Var, it becomes an integer.
Type casts in PHP are very similar to those in C: precede the variables to be converted with the
Chapter PHP3 Introduction
PHP is a server built-in script language that makes it possible to quickly develop dynamic web on UNIX.
PHP was conceived by Rasmus Lerdorf in the fall of 1994. The earliest unreleased version was the one he used to keep
Chapter PHP3 Introduction
PHP is a server built-in script language that makes it possible to quickly develop dynamic web on UNIX.
PHP was conceived by Rasmus Lerdorf in the fall of 1994. The earliest unreleased version was the one he used to keep
does not face
ObjectProgrammer is not a good programmer
I am familiar with facing
Object!!!!
The basic concept of object -oriented
Object -oriented practice in PHP
The basic concept of object -oriented
What is an object
The basic
Get data type: If you want to see the value and type of an expression, use var_dump ().If you just want an easy-to-read type of expression for debugging, use GetType ().To view a type, do not use GetType () and use the Is_type () function.Convert
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.