随笔分类 -  PHP

摘要:{'Play'}(2); //或者 $method = 'Play'; $game->$method(3); 阅读全文
posted @ 2016-08-12 11:48 Waichung 阅读(999) 评论(0) 推荐(0)
摘要:function startsWith($haystack, $needle) { // search backwards starting from haystack length characters from the end return $needle === "" || str... 阅读全文
posted @ 2015-12-26 16:26 Waichung 阅读(1255) 评论(0) 推荐(0)
摘要:function convert_snmp_timeticks($timeticks) { if(!is_numeric($timeticks)) { return FALSE; } //如果是字符串类型,则先进行转换 if(is_string($tim... 阅读全文
posted @ 2015-12-26 11:02 Waichung 阅读(664) 评论(0) 推荐(0)
摘要:原文来自:http://blog.chinaunix.net/uid-7654720-id-3211234.htmlclass SNMP_Wrapper { protected $_host; protected $_community; protected $_version; ... 阅读全文
posted @ 2015-12-26 09:58 Waichung 阅读(251) 评论(0) 推荐(0)
摘要:The lazy one-liner methodYou can do this in a one liner using the JSON methods if you're willing to lose a tiny bit of performance (though some have r... 阅读全文
posted @ 2015-12-08 17:13 Waichung 阅读(286) 评论(0) 推荐(0)
摘要:原文来自:http://www.veryhuo.com/a/view/41466.html如果您刚刚开始学习PHP,可能有许多函数需要研究,今天我们就来学习一下PHP Header()的使用方法,更多的使用说明,请您参照PHP中文手册,下面是关于header函数的详细使用说明不管页面有多少heade... 阅读全文
posted @ 2015-10-28 13:36 Waichung 阅读(434) 评论(0) 推荐(0)
摘要:原文来自:http://www.seayee.net/article/info_115.html 阅读全文
posted @ 2015-06-13 10:10 Waichung 阅读(232) 评论(0) 推荐(0)
摘要:urlParameters = http_build_query( filter_input_array( INPUT_GET, FILTER_SANITIZE_URL ));$_request_uri = filter_input(INPUT_SERVER,... 阅读全文
posted @ 2015-05-22 16:10 Waichung 阅读(1295) 评论(0) 推荐(0)
摘要:To get the Raw Post Data: 参考官方:http://php.net/manual/zh/reserved.variables.httprawpostdata.php 阅读全文
posted @ 2014-11-06 18:52 Waichung 阅读(785) 评论(0) 推荐(0)