已弃用 ereg 的问题
有人可以帮我重写这些代码吗:
if (eregi($asked,$accepted)) {
$this->plot_type = $which_pt;
return true;
} else {
$this->DrawError('$which_pt not an acceptable plot type');
return false;
}
任何帮助将不胜感激,我已经尝试了通过谷歌获得的所有修复,但没有一个能够修复它。
谢谢。
Can some please help me to rewrite these code:
if (eregi($asked,$accepted)) {
$this->plot_type = $which_pt;
return true;
} else {
$this->DrawError('$which_pt not an acceptable plot type');
return false;
}
Any help will be highly appreciated, I have tried all the fix I got through Google but none has been able to fix it.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
应该这样做。如果没有,请与我们分享
$asked
中正则表达式的内容。should do it. If it doesn't, please share with us the content of the regular expression in
$asked
.