标签:div 数据类型 image func src his UNC world str
<?php $x = "Hello world!"; echo $x; echo "<br>"; $x = ‘Hello world!‘; echo $x; ?>
<?php $x = 5985; var_dump($x); echo "<br>"; $x = -345; // 负数 var_dump($x); echo "<br>"; $x = 0x8C; // 十六进制数 var_dump($x); echo "<br>"; $x = 047; // 八进制数 var_dump($x); ?>
<?php $x = 10.365; var_dump($x); echo "<br>"; $x = 2.4e3; var_dump($x); echo "<br>"; $x = 8E-5; var_dump($x); ?>
<?php $cars=array("Volvo","BMW","Toyota"); var_dump($cars); ?>
<?php class Car { var $color; function __construct($color="green") { $this->color = $color; } function what_color() { return $this->color; } } ?>
<?php $x="Hello world!"; $x=null; var_dump($x); ?>
标签:div 数据类型 image func src his UNC world str
原文地址:https://www.cnblogs.com/tszr/p/10936890.html