在PHP中定义变量? <space1> = <space2> = etc

时间:2016-10-09 13:14:32

标签: php wordpress html5

我有一个自定义WP插件,可以创建一个短代码。

例如我的插件就像这样:

[text]&nbsp;&nbsp;&nbsp;Hello all, thank you![/text]

我需要添加这些因各种原因。

Is there a way I can define &nbsp; so that I can just write:

[text]<space3>Hello all, thank you![/text] or something similar?

i.e. <space3> = &nbsp;&nbsp;&nbsp

谢谢!

0 个答案:

没有答案