-1

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

J. Steen
  • 14,900
  • 15
  • 57
  • 62
user3021515
  • 251
  • 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,755
  • 2
  • 38
  • 58
0

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

$_REQUEST[] - HTTP Request variables

Rakesh Sharma
  • 13,404
  • 4
  • 34
  • 41