Regex to parse define() contents, possible?

前端 未结 5 1931
北海茫月
北海茫月 2021-01-13 11:06

I am very new to regex, and this is way too advanced for me. So I am asking the experts over here.

Problem I would like to retrieve the constants /

5条回答
  •  花落未央
    2021-01-13 11:27

    This is possible, but I would rather use get_defined_constants(). But make sure all your translations have something in common (like all translations starting with T), so you can tell them apart from other constants.

提交回复
热议问题