扫码下载编程狮APP
<?php $foo = "5w3cschool"; // string $bar = true; // boolean settype($foo, "integer"); // $foo 现在是 5 (integer) settype($bar, "string"); // $bar 现在是 "1" (string) print_r($foo); print_r($bar); ?>