原创 php 數組轉換爲字符串
public static function arrayToString($arr) { $result =
原创 php xml 轉換 數組
class XmlUtils { public static function xmlStr2Array($str) {
原创 static 靜態方法 線程安全
static 靜態方法 線程安全 http://blog.csdn.net/scucj/article/details/1394523 public class Test { public static String hello(S
原创 js 判斷 外網 連通性
//Server for check whether or not internet is available. CHECK_NETWORK_SERVER: ["server1", "server2", "server3"] /
原创 時序圖
http://smartlife.blog.51cto.com/1146871/284874
原创 php 數組 對象 轉換
1.利用反射技術 class T { public function objToArray() { $arry = array(); $isAllEmpty = true;
原创 php 形參 限定類型
php沒有別的限定類型了,諸如string、integer這樣的限定類型是沒有的,只有數組和對象兩種限定類型。