Welcome Guest, Not a member yet? Register   Sign In
env file and boolean values ​​such as true or false
#1

(This post was last modified: 11-21-2022, 02:21 AM by serialkiller.)

Inside the .env file, how should I deal with boolean variables?
In the original file, for example, I find variables set to true and one set to 'true'.

Code:
honeypot.hidden = 'true'


I've set my variable to both true and 'true', but it's always treated as a string.

I'm using getenv() to retrieve the value, is there maybe some other function that returns a boolean instead of a string in these cases?
Reply


Messages In This Thread
env file and boolean values ​​such as true or false - by serialkiller - 11-21-2022, 02:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB