当前位置:编程学习 > php >>

php正则表达式匹配模式中使用变量

如何在正则表达式模式中使用变量 这样对吗? $pattern="/$word/"; 还是$pattern="/'.$word.'/";
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,