Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexchent committed Jan 14, 2020
1 parent 2ad3202 commit 769ca19
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 81 deletions.
90 changes: 49 additions & 41 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ This is a PHP test

中最大的是:
4 5
5 3
5 3

- [php7新特性——标量类型与返回值类型声明、以及静态变量的作用域](laboratory/php7_1.php)
13 changes: 7 additions & 6 deletions static_test.php → laboratory/php7_1.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php
/**
* Created by PhpStorm.
* User: chentao
* Date: 2019/1/17
* Time: 5:04 PM
* php7新特性——标量类型与返回值类型声明
*
*
*/
error_reporting(E_ALL);
declare(stric_types =0);

static $c=1;
$d=3;

$res1 = test(1.5,2);


echo $res1,"\n";
$res2 = test(1.5,2);
echo $res2,"\n";
Expand All @@ -32,6 +32,7 @@ function test(int $a, int $b) : int {
if (isset($c)) {
$res += $c;
}

if (isset($d)) {
$res +=$d;
$d += 1.5;
Expand Down
33 changes: 0 additions & 33 deletions output.php

This file was deleted.

0 comments on commit 769ca19

Please sign in to comment.