1. About capitalization
PHP's built-in functions and structures are case-insensitive.
Such as:
Copy CodeThe code is as follows:
<title>hellophp</title>
Echo ("Hello PHP");
ECHO ("Hello PHP");
Echo ("Hello PHP");
?>
The effect of these three is the same.
Other, user-defined class names and method names are also case insensitive.
For example:
Copy CodeThe code is as follows:
<title>hellophp</title>
function Test ()
{
Echo ("Hello PHP");
}
Test ();
TEST ();
Test ();
?>
However, the variables are case-sensitive.
2. Variables
One thing to mention here is that even a little bit of PHP will know that PHP declaration variables start with a dollar ($) symbol.
In the previous example, we can also see.
3. Type judgment function
In PHP, there are eight types of data: integer, Float, String, Boolean, array, object, NULL, and resource type.
There is a very important function for judging the type, in the form of is_xx.
For example:
Copy CodeThe code is as follows:
$intTest = 1;
Echo (Is_int ($intTest));
Echo ("
");
$stringTest = "Test";
Echo (Is_string ($stringTest));
Echo ("
");
Echo (Is_int ($stringTest));
?>
http://www.bkjia.com/PHPjc/321311.html www.bkjia.com true http://www.bkjia.com/PHPjc/321311.html techarticle 1. The functions and structures built into the case of PHP are case insensitive. For example: Copy code code as follows: HTML head titlehellophp/title/head body php echo ("Hello php"); ECHO ("H ...