채택완료

eregi ->preg_match

2019-04-06 (토) 22:31:19 3,746

    $snd_path = implode("",$arr);
    $snd_1="";
    if(!eregi("\.smi",$temp[sitelink1])) $snd_1="$temp[sitelink1]";
    $snd_3="";
    if(!eregi("\.smi",$snd_path)) $snd_3="$snd_path";
    if ($snd_1==""){
        $song_path1[$i]=$snd_3;
    }else{
        $song_path1[$i]=$temp[sitelink1];
    }
    $song_path3[$i]=$snd_path;

    if ($song_path1[$i]==true)

----------------------------------------

php 버젼 때문에 변경 해야된다는 어떻게 수정하면 될까요?

|

답변 1개 / 댓글 1개

채택된 답변
+20 포인트

if(!eregi("\.smi",$temp[sitelink1]))

=> if(!preg_match("#\.smi#i", $temp[sitelink1]))

답변에 대한 댓글 1개

답변 감사합니다.

답변을 작성하려면 로그인이 필요합니다.