关于base64_decode的有关问题. 还有赋值有关问题

WBOY
Release: 2016-06-13 13:39:37
Original
867 people have browsed it

关于base64_decode的问题. 还有赋值问题。
页面$id=$_GET['id']; $_GET['id']通过base64_decode加密了。
要怎么样。才能显示出来
$id =原来的ID值呢?



例如原来的ID=1 通base64_decode 加密得到MQ==

要用什么函数或是方法。把MQ== 还原回1呢?
 

------解决方案--------------------

PHP code
base64_encode('1') = 'MQ==';
base64_decode('MQ==') = '1';
<br><font color="#e78608">------解决方案--------------------</font><br>base64_encode 编码<br>base64_decode 解码<br><br>亲,以后别叫加密了成不.<br><br>$ID = base64_encode($ID);<br>传递到其他页面 使用<br>$ID = base64_decode($_GET['ID'])?<br>解码<br><br> <div class="clear">
                 
              
              
        
            </div>
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!