摘要: <?php /** * PHP7新特性 */ //特性一 $t = $_GET['id'] ?? "test"; echo $t; //特性二: 函数返回值类型声明 declare(strict_types=1); function foo($a):int { return $a; } echo foo(15.1); //特性三:标量类型声明 declare(strict_... 阅读全文
posted @ 2017-11-13 13:32 略黑 阅读(206) 评论(0) 推荐(0)