Fatal error: Can't use function return value in write context

When I did the following php code, it gives me an error on line 2:

Fatal error: Can't use function return value in write context

Please help, thanks!

here is my code:

1. include_once 'functions.php';
2. if (isset($_GET('view'))) {
3.   if (!isset($_SESSION['uniid'])) {
4.     die("<h1>sorry, no access!</h1>");
5.     $login = false;
6.   }
7.   $login = true;
8. }

There's a typo bug:

if(isset($_GET('view'))){

should be

if(isset($_GET['view'])){  // square brackets!
链接地址: http://www.djcxy.com/p/69246.html

上一篇: 致命错误:无法在写入上下文中使用函数返回值

下一篇: 致命错误:不能在写入上下文中使用函数返回值