emailpassword: getenv('EMAIL_PASSWORD',''),
So what exactly does this code do? And what is the 'getenv' function. A quick google search told me that it is something to do with environment variables. Could someone explain what they are?
emailpassword: getenv('EMAIL_PASSWORD',''),
So what exactly does this code do? And what is the 'getenv' function. A quick google search told me that it is something to do with environment variables. Could someone explain what they are?
By right, it's getting the environment variables which are used for configuring your application, in your case it can be seen as getting your 'EMAIL_PASSWORD'.
getenv('EMAIL_PASSWORD') will return the value of variable 'EMAIL_PASSWORD'. Considering 2nd parameter it's meant for fallback functions.