Search code examples
phpideeditorregions

Does PHP support regions?


In C# I can write #region and #endregion, is there an equivalent in PHP that works with all IDEs?

Thanks!


Solution

  • This isn't natively supported, but instead it would be IDE-specific. And this doesn't strictly mean #region support per se, but rather 'code folding' in whatever fashion any IDE (or extension/plugin) supports. Here, and here are a couple of examples.