-1

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

J. Steen
  • 15,260
  • 15
  • 59
  • 62
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,758
  • 2
  • 41
  • 58
0

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

$_REQUEST[] - HTTP Request variables

Rakesh Sharma
  • 13,570
  • 4
  • 35
  • 42