摘要:
php json josn_decode()返回的是对像,如何把对像转成数组a.php传值页面,使用 json_encode($array)对数组进行加密码.b.php页面在接收a.php传过来的页面的值使用的是 json_decode($array),发现解密出来的数据是对象形式的:array(2) { [0]=> object(stdClass)#2 (4) { ["id"]=> string(1)"1" ["name"]=> string(9)"张雪梅" ["age"]= 阅读全文
posted @ 2013-10-25 14:16
午火39
阅读(566)
评论(0)
推荐(0)
摘要:
php file_get_contents计时读取一个文件/页面 防止读取不到内容$url = 'http://www.baidu.com/index.php';$opts = array( 'http' => array( 'method' => 'GET', 'header' => 'Accept-language: en\r\n'.'Cookie: foo=bar\r\n', 'timeout'=> 20 ) ); $context = 阅读全文
posted @ 2013-10-25 13:56
午火39
阅读(528)
评论(0)
推荐(0)
浙公网安备 33010602011771号