标签:sort function log cti return atp substr str pre
/* 字典升序*/ function formatParaMap($paraMap) { $buff = ""; ksort($paraMap); foreach ($paraMap as $k => $v) { $buff .= $k . "=" . $v . "&"; } $reqPar = ‘‘; //去掉最后一个字符 $ if (strlen($buff) > 0) { $reqPar = substr($buff, 0, strlen($buff)-1); } return $reqPar; }
标签:sort function log cti return atp substr str pre
原文地址:http://www.cnblogs.com/buxiangxin/p/7424195.html