美文网首页
PHP 数组URL传递方式

PHP 数组URL传递方式

作者: 你咋那么傻呢 | 来源:发表于2016-06-06 18:25 被阅读0次

PHP 数组URL传递方式

<?php

$re=array(1,2,3,4,5,6,7,8,);

$re=serialize($re);

$re=base64_encode($re);

header("location:test1.php?re=$re");

?>

接收页面如下写法:

<?php

$re=base64_decode($_REQUEST["re"]);

$re=unserialize($re);

var_dump($re);

?>

相关文章

网友评论

      本文标题:PHP 数组URL传递方式

      本文链接:https://www.haomeiwen.com/subject/ozqddttx.html