Step by step learning PHP (2 )?? PHP type 1. case sensitivity
PHP built-in functions and structures are case-insensitive.
For example:
HelloPHP
The effect of the three is the same.
Others, user-defined class names and method names are case-insensitive.
For example:
HelloPHP
However, variables are case sensitive.
2. variables
Only one sentence can be mentioned here. even those who have been slightly touched by PHP will know that the PHP declaration variable starts with the dollar sign ($.
In the previous example, we can also see that.
3. type judgment function
In PHP, there are eight data types: integer, floating point, string, Boolean, array, object, NULL, and resource type.
There is an important function for determining the type, in the format of is_XX.
For example:
"); $stringTest="Test"; echo(is_string($stringTest)); echo("
"); echo(is_int($stringTest)); ?>