Home > Backend Development > PHP Tutorial > Learn PHP Learn PHP2 step by step - PHP type

Learn PHP Learn PHP2 step by step - PHP type

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-29 08:41:50
Original
998 people have browsed it

1. Regarding case
PHP’s built-in functions and structures are not case-sensitive.
For example:

Copy code The code is as follows:




HelloPHP

< ?php
echo("Hello PHP");
ECHO("Hello PHP");
Echo("Hello PHP");
?>



These three The effect is the same.
Others, user-defined class names and method names are also case-insensitive.
For example:

Copy the code The code is as follows:




HelloPHP

< ?php
function Test()
{
echo("Hello PHP");
}
Test();
TEST();
test();
?>


But variables are case-sensitive.
 一步一步学习PHP2——PHP类型");
$stringTest="Test";
echo(is_string($stringTest));
echo("
");
echo(is_int($stringTest));
?>

The above introduces the step-by-step learning of PHP2 - PHP type, including the content of learning PHP. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template