title: What is difference between .env files and .ini files? which one is better?
body: <p>I am a beginner PHP , I found out that Laravel has .env file to save some configurations and php also have a file format .ini to save config.  </p>
  
  <p>I want to ask what is the difference in both, is one is better from another. Should i add dotenv in my core projects also or should i create class/function to access .ini for my config/environment variables.</p>
  
  <p>i want to understand why dotenv is being created as we already had ini file extension system in php?</p>