admin管理员组文章数量:1335102
I really don't understand Javascript.
In PHP, I can remove quotes like this:
$tags_array = preg_replace('/"/', '', $tags_array);
How do I write it in Javascript?
I really don't understand Javascript.
In PHP, I can remove quotes like this:
$tags_array = preg_replace('/"/', '', $tags_array);
How do I write it in Javascript?
Share Improve this question edited Nov 23, 2011 at 23:21 Jonathan Leffler 755k145 gold badges949 silver badges1.3k bronze badges asked Dec 22, 2009 at 6:36 ajsieajsie 79.9k110 gold badges284 silver badges386 bronze badges 1- Do you mean "remove quote from an array of string"? You'll have to loop through the array to do it. – o.k.w Commented Dec 22, 2009 at 6:40
2 Answers
Reset to default 6str = str.replace(/"/g, '');
You can do almost the same thing with javascript what you do with php, i mean many functions, here is the solution:
PHPJS
本文标签: phpremove quotes from variable in javascriptStack Overflow
版权声明:本文标题:php - remove quotes from variable in javascript? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742373573a2462714.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论