Skip to main content

Environment Variables

setEnv

  • setEnv(name, value)
    • set the environment variable $name to value
setEnv("from", "-24h")
setEnv("to", "@h")

getEnv

  • getEnv(name)
    • get the environment variable $name
setEnv("from", "-24h")
getEnv('from') // return the string -24h