Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

这个替换产生了一个问题 #2

Open
skygunner opened this issue Jul 9, 2016 · 1 comment
Open

这个替换产生了一个问题 #2

skygunner opened this issue Jul 9, 2016 · 1 comment

Comments

@skygunner
Copy link

//$val = preg_replace("/[([^[]])]/eis", "'.'.str_replace('$','$','\1')", $val);
替换为
$val = preg_replace_callback("/[([^[]]
)]/is", function ($matches) { return '.'.str_replace('$','$',$matches[1]);}, $val);

将不能支持
$lang.os.[$order.order_status]
这种形式的变量,导致很多地方无法显示出内容

@afp0613
Copy link

afp0613 commented Apr 16, 2017

改成$lang.os.$order.order_status就好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants