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/
Invite-only community of developers, builders, makers, and tektons.