Another use-case that just occurred to me is to support testing:

class Api {
   const URL: string{
      return $_ENV['EXAMPLE_API_URL'] ?? 'https://api.example.com';
   }
}

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to