php
1$x = 10; 2 3function checkScope(): int { 4 return ++$x; 5} 6 7print checkScope(); 8print $x;
エラー
構文エラー, unexpected ':', expecting '{'
これってなんでエラーなのでしょうか。
PHP7の構文でしょうか。。
回答2件
あなたの回答
tips
プレビュー
投稿2017/04/07 05:03
php
1$x = 10; 2 3function checkScope(): int { 4 return ++$x; 5} 6 7print checkScope(); 8print $x;
エラー
構文エラー, unexpected ':', expecting '{'
これってなんでエラーなのでしょうか。
PHP7の構文でしょうか。。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/04/07 06:07
2017/04/07 06:17
2017/04/07 06:26