difference of using environment and development in Yii2advance template

Hi, what is the difference in using environment and production mode in yii2 advance template ?

are there any security added or our site will be more secured if we use the production mode ?

Thank you in advance.