Learning from other languages is what makes being a coding polyglot so much fun. I wonder, what if PHP had a Python-style context manager implementation?
https://ttmm.io/tech/php-context-manager/
Don't have an account? You can sign up here