Why does the message "Do not access superglobal array directly" appear?

Asked

Viewed 845 times

0

How can I use the array $_GET without giving this problem (Netbeans), since even when I use it in this way gives error:

$var = isset($_GET['variavel'])?filter_var($_GET['variavel'], FILTER_SANITIZE_NUMBER_INT): false;
  • Error or he suggests something?

  • It’s just Warning, it’s no mistake. You can use it quietly.

  • which version of your php?

  • I use version 7

  • What error/warn occurs?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.