-1

What is the difference between @$_REQUEST[] and $_REQUEST[]? Why do we use @ in front of $_REQUEST[]?

J. Steen
  • 15,470
  • 15
  • 56
  • 63
user3021515
  • 261
  • 3
  • 7

2 Answers2

0

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.

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

Ashwini Agarwal
  • 4,828
  • 2
  • 42
  • 59
0

@$_REQUEST[] - using @(error control operator) to hide errors

$_REQUEST[] - HTTP Request variables

Rakesh Sharma
  • 13,680
  • 5
  • 37
  • 44