-4

What are the advantages of using $exists = @$userID; statement, compared to the longer notation of if(isset($userID)){$exists = $userID; }else{$exists = false;}

Is the "@" notation a lot faster, because I find it less readable ?

kristof_w
  • 302
  • 2
  • 11
  • in short: you won't get an `Notice: Undefined variable: useriD` exeption if `@` is present and UserID is not set – k102 May 21 '12 at 12:30

1 Answers1

1

Apparently after a 5 second google search, it supresses error reporting.

Bono
  • 4,757
  • 6
  • 48
  • 77