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

在又简化代码需求~

WBOY
Release: 2016-06-13 11:43:16
Original
830 people have browsed it

在再简化代码需求~~

$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>"; 
Copy after login

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template