PHP #region for code folding?

前端 未结 15 1439
星月不相逢
星月不相逢 2021-01-31 14:06

Is there an equivilent of c#\'s #region in PHP?

15条回答
  •  醉话见心
    2021-01-31 14:42

    You might be able to just use curly brackets {}, but it really depends on your editor.

    I know some editors might pick that up as a code block, allowing you to collapse it, but it probably won't allow you to name the section that you're collapsing purely because that function isn't native to the language.

提交回复
热议问题