阅读背景:

使用PHP json_encode()防止引用某些值

来源:互联网 

When using PHP's json_encode to encode an array as a JSON string, is there any way at all to prevent the function from quoting specific values in the returned string? The reason I ask is because I need javascript to interpret certain values in the object as actual variable names, for example the name of an existing javascript function.When using PHP's json_encode to encode an array




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: