trollolodn

#php: @-& before $var

May 14th, 2013
5,481
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.49 KB | None | 0 0
  1. //English
  2. @$variable //Do not throw exceptions
  3. $a = &$variable //& is a reference to a variable. Normally a variable will be static, the reference allows you to access the same variable content by different names. If I understood what I just said I might be able to help explain the reference a little better..
  4.  
  5. //Vietnamese
  6. @$variable //Sẽ không quăng ra lỗi
  7. $a = &$variable //Phụ thuộc vào $variable, khi variable thay đổi thì biến được gán ($a) cũng thay đổi theo. -
Advertisement