07 2012 档案

摘要:<?php $ctx = stream_context_create(array( 'http' => array( 'timeout' => 1 //设置一个超时时间,单位为秒 ) ) ); file_get_contents("http://example.com/", 0, $ctx); ?> 设置一个超时时间就可以,可以自行封装函数 阅读全文
posted @ 2012-07-25 10:34 Falling Leaves 阅读(443) 评论(0) 推荐(0) 编辑
摘要://定义一个学生数组$students = array( 256=>array('name'=>'jon','grade'=>98.5), 2=>array('name'=>'vance','grade'=>85.1), 9=>array('name'=>'stephen','grade'=>94.0), 364=>array('name'=>'steve' 阅读全文
posted @ 2012-07-12 16:15 Falling Leaves 阅读(1571) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2012-07-10 10:46 Falling Leaves 阅读(584) 评论(0) 推荐(0) 编辑