asp textareaマルチライン配列分割処理方法

1527 ワード

従って対応するasp処理コードは以下の通りである.
 
  
dedearr=split(xiangguanid2,chr(13)) '
for dede=0 to ubound(dedearr)-1 ' , chr(13) 。
dedearr2=split(dedearr(dede),"|")
dedetitle=dedearr2(1)
dedeurl=dedearr2(0)
if dedetitle<>"" and dedeurl<>"" then
xiangguanart2=xiangguanart2&"
  • "&dedetitle&"
  • "
    end if
    next
    end if

    phpの処理コードは参照されています(dedecms)
     
      
    $cfg_softinfos['sites'] = ereg_replace("
    {1,}","
    ",str_replace("\r","
    ",$cfg_softinfos['sites']));
    $sites = explode("
    ",trim($cfg_softinfos['sites']));
    foreach($sites as $site)
    {
    if(trim($site)=='') continue;
    list($link,$serverName) = explode('|',$site);

    if(!eregi("^(http|ftp)://",$firstLink)) $flink = trim($link).$firstLink;
    else $flink = $firstLink;

    if($cfg_softinfos['gotojump']==1) $flink = $phppath."/download.php?open=1&aid=$aid&cid=$cid&link=".urlencode(base64_encode($flink));
    $temp = str_replace("~link~",$flink,$tempStr);
    $temp = str_replace("~server~",$serverName,$temp);
    $downlinks .= $temp;
    }
    }