The format of an env.php file for deployment

Does the env.php file described here use the same general structure as the regular config.php file? I’m guessing it does, but my guesses have a mixed track record.

I understand that env.php is loaded before any other config files and that no value set by it will be overridden by any other config file that loads later.

Just want to be sure…

Yes, it returns an array of config settings just like the config.php.