2014年4月18日

递归遍历多维数组(树数据结构)的超级简单方式,并且可以递归超过200层,摘自<<PHP精粹:编写高效PHP代码>>

摘要: $value) { echo "Depth: " . $recursiveIteratorIterator->getDepth() . PHP_EOL; echo "Key: " . $key . PHP_EOL; echo "Value: " .$value . PHP_EOL;}?> 阅读全文

posted @ 2014-04-18 12:36 左小兵 阅读(646) 评论(0) 推荐(0) 编辑

http协议传输二进制数据以及对输入流(php://input)和http请求的理解

摘要: 1.index.php array( 'method' => 'POST', 'header' => "Content-type: application/x-www-form-urlencoded\r\n" ... 阅读全文

posted @ 2014-04-18 12:10 左小兵 阅读(581) 评论(0) 推荐(0) 编辑

一个非常简单的RPC服务

摘要: 1.servicefunctions.phpView Code2.index.phpView Code 阅读全文

posted @ 2014-04-18 03:46 左小兵 阅读(146) 评论(0) 推荐(0) 编辑

php://input 打开的数据流只能读取一次,即读取一次之后读取的值为空

摘要: 如题 阅读全文

posted @ 2014-04-18 00:03 左小兵 阅读(410) 评论(0) 推荐(0) 编辑

导航