Maison >développement back-end >tutoriel php >在再简化代码需求~该如何解决
在再简化代码需求~~
$x = md5($row['userid']."+".$row['pwd']);<br />$str = base64_encode($row['userid'].".".$x);<br />//print_r($str);die;<br />$b=explode("/",DEDEROOT);<br />$c=$b['1'];<br />$a ='/reg/resetpw.php?p='.$str;<br />$a = "<a href='$a'>$c.$a</a>";
<br />list($b,$c,$d)=explode("/",DEDEROOT);<br />$a ='/reg/resetpw.php?p='.base64_encode($row['userid'].".".md5($row['userid']."+".$row['pwd']));<br />$a = "<a href='$a'>$c.$a</a>";<br />
strtok(DEDEROOT, "/");<br />$a ='/reg/resetpw.php?p=' . base64_encode($row['userid'].".".md5($row['userid']."+".$row['pwd']));<br />$a = "<a href='$a'>".strtok("/")."$a</a>";