代码:
if(eregi(’^#(([a-z]+://)?[^:]+):(\d+)#i‘, $hosts[$index], $hostinfo)) {
$host = $hostinfo[1];
$port = $hostinfo[3];
} else {
$host = $hosts[$index];
$port = $this->Port;
}错误:
Deprecated :Function eregi() is deprecated in......大哥大姐们谁能帮忙看看?在线等待 ,急
if(eregi(’^#(([a-z]+://)?[^:]+):(\d+)#i‘, $hosts[$index], $hostinfo)) {
$host = $hostinfo[1];
$port = $hostinfo[3];
} else {
$host = $hosts[$index];
$port = $this->Port;
}错误:
Deprecated :Function eregi() is deprecated in......大哥大姐们谁能帮忙看看?在线等待 ,急
若嫌麻烦可以屏蔽掉 Deprecated 级别警告
或
if(@eregi(’^#(([a-z]+://)?[^:]+):(\d+)#i‘, $hosts[$index], $hostinfo)) {