Marcus Well-known member Aug 13, 2013 #1 I am curious what "@" is doing in this declaration: PHP: $variable = (string)@$this->_params['posts'][@$postId]['setting']
I am curious what "@" is doing in this declaration: PHP: $variable = (string)@$this->_params['posts'][@$postId]['setting']
Jeremy in memoriam 1991-2020 Aug 13, 2013 #2 The @ symbol when used in PHP will hide any errors or warnings that occur because of that specific statement.
The @ symbol when used in PHP will hide any errors or warnings that occur because of that specific statement.
Terry Harvey Member Aug 13, 2013 #3 What King Kovifor said. Although it's generally considered bad practice.
rellek Well-known member Aug 14, 2013 #4 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?
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?
twhiting9275 Well-known member Sep 18, 2013 #5 rellek said: However, it's the easiest way to make old (or crappy) software like Joomla 1.x work without raising errors in PHP 5.3+. Click to expand... actually, the easiest way is to use ini to set display_errors to 0 , but yeah, for most that's going to be the easiest way
rellek said: However, it's the easiest way to make old (or crappy) software like Joomla 1.x work without raising errors in PHP 5.3+. Click to expand... actually, the easiest way is to use ini to set display_errors to 0 , but yeah, for most that's going to be the easiest way
Chris D XenForo developer Staff member Sep 18, 2013 #6 I think it has valid usage. XenForo uses it in a few places.