- 博客(3)
- 收藏
- 关注
转载 php7 对返回值的限定
Return type declarationsPHP 7 adds support for return type declarations. Similarly to argument type declarations, return type declarations specify the type of the value that will be returned fro
2015-12-31 15:35:43 1526
原创 php的array object 互转
<?phpclass obj1{ public $a=1; private $b = 2; public static $c = 3; public function d(){ echo $this->a; }}$arr = (array) (new obj1());var_dump($arr);var_dump((object) $arr);$o
2015-12-31 15:26:47 260
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人