In PHP, I’ve noticed people put the “@” symbol in source code comments. One great example is anything WordPress. When you look at the source, you see things like
/** Results of the last query made
*
* @since 1.0.0
* @access private
* @var array|null
*/
var $last_result
(wp-db.php, Line 124)
It changes the syntax highlighting in my editor so I’m assuming it does something, but I’m not sure what it does. Would someone explain what the “@” symbol does in comments?
These are
PHPDoccomments. They’re intended to be machine-parseable to support automated documentation and IDE code completion.