-3

I want to know if we have another way to error instead of @ symbol because I am confused with the symbol

@$page = $_GET['page'];
  • 4
    It `@` supresses all errors, in this case, a possible notice if either the global array `$_GET` or it's key`'page'` does not exists (http://3v4l.org/iQdar). – boast Jun 24 '15 at 23:18
  • Don't edit old questions into new different questions. – Progman Jan 07 '18 at 22:16
  • but i want to remove this message "no longer accepting questions from this account." – Mohamed Khaled Jan 07 '18 at 22:18
  • @MohamedKhaled Please read https://meta.stackexchange.com/questions/86997/what-can-i-do-when-getting-we-are-no-longer-accepting-questions-answers-from-th for support on this error message. – Progman Jan 07 '18 at 22:20

1 Answers1

1

http://php.net/manual/en/language.operators.errorcontrol.php

The @ is error suppression operator in PHP.

PHP supports one error control operator: the at sign (@). When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored. See:

Error Control Operators
Bad uses of the @ operator

Idanmel
  • 472
  • 5
  • 12
  • 1
    You might want to edit your post, to show that you're quoting the manual page: http://php.net/manual/en/language.operators.errorcontrol.php – andrewsi Jun 24 '15 at 23:28