• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

What does = @$variable do?


Well-known member
I am curious what "@" is doing in this declaration:
$variable = (string)@$this->_params['posts'][@$postId]['setting']


Well-known member
However, it's the easiest way to make old (or crappy) software like Joomla 1.x work without raising errors in PHP 5.3+.

Btw @Marcus, where did you get this line from?