• 实例首页
  • 自学教程
  • IT工具箱
xxxxxxxxxx
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<meta charset="utf-8">
5
<title>PHP 类型比较 实例 - 自学教程(runoops.com)</title>
6
</head>
7
<body>
8
​
9
<?php
10
if(42 == "42") {
11
    echo '1、值相等';
12
}
13
 
14
echo PHP_EOL; // 换行符
15
 
16
if(42 === "42") {
17
    echo '2、类型相等';
18
} else {
19
    echo '3、类型不相等';
20
}
21
?>
22
​
23
</body>
24
​
25
</html>
26
​

© 2023 自学教程   runoops.com All Rights Reserved. 备案号:闽ICP备19010956号-1