Home  >  Article  >  Backend Development  >  在又简化代码需求~

在又简化代码需求~

WBOY
WBOYOriginal
2016-06-13 11:43:16760browse

在再简化代码需求~~

$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>"; 

这代码还能简化吗?变量有点多了 。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn