close
轉自 http://stackoverflow.com/questions/5224790/curl-post-format-for-curlopt-postfields
--
這function可以將array轉成post或是get的參數
function preparePostFields($array) {
$params = array();
foreach ($array as $key => $value) {
$params[] = $key . '=' . urlencode($value);
}
return implode('&', $params);
}
--
全站熱搜
留言列表