PHP 支持区域吗?
在 C# 中,我可以编写 #region 和 #endregion,PHP 中是否有适用于所有 IDE 的等效项?
谢谢!
In C# I can write #region and #endregion, is there an equivalent in PHP that works with all IDEs?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这本身并不支持,但它是特定于 IDE 的。这并不严格意味着
#region
支持本身,而是以任何 IDE(或扩展/插件)支持的任何方式进行“代码折叠”。 此处和这里有几个例子。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.不,PHP 中没有#region。它实际上与IDE/编辑器有关。与语言无关。
No there is no #region in PHP. Its related to IDE/Editor actually. Not related to language.
试试这个:
Try this: