Discover what type casting in php, include the articles, news, trends, analysis and practical advice about what type casting in php on alibabacloud.com
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
PHP is a loose type of language, do not have to use the variable to do a special definition, which gives the program to write a lot of flexibility and convenience. But in the process of programming, we need to know what kind of variables we use,
: This article mainly introduces the methods of the original PHP type. if you are interested in the PHP Tutorial, please refer to them. Introduction
For the first time, translate others' articles and use level 4 English for translation ~~ However,
[Translated from nikic] introduction to native methods in PHP for the first time, I translated others' articles in level 4 English ~~ However, there may be a lot of inappropriate things, even though you may not think of proper translation in some
The method of "translating from Nikic to great God" php native type
Introduction
For the first time, the translation of other people's articles, with level four English translation ~ ~ Embarrassed, there may be a lot of inappropriate places,
PHP does not need (or does not support) explicit type definitions in variable definitions; The variable type is determined by the context in which the variable is used. In other words, if you assign a string value to a variable $var, $var becomes a
PHP does not need (or does not support) explicit type definitions in variable definitions; The variable type is determined by the context in which the variable is used. That is, if you assign a string value to a variable $var, the $var becomes a
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 ()
PHP does not need (or does not support) explicit type definitions in variable definitions; The variable type is determined by the context in which the variable is used. In other words, if you assign a string value to a variable
var,
varis a string.
Basic Learning notes for php and basic learning notes for php. Php Basics study notes, php Basics This article introduces in detail the most basic content of php learning, including basic data types, variable types, operators, etc, php entry
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.