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

Associate
Joined
18 Oct 2002
Posts
858
Location
Cheshire
Fatal error: Can't use function return value in write context in /srv/www/htdocs/abcd/ui.php on line 2

I'm not firmiliar with this error message....

Line 2 in ui.php is...

PHP:
<?php if (USER_TYPE_CHECK() = '0') {

USER_TYPE_CHECK() is a predefined function, have I used it wrong?
 
= is assignment, == and === are equality operators.

Code:
<?php if (USER_TYPE_CHECK() == '0') {

should therefore work.
 
Back
Top Bottom