$data = array(
'MAX' =>'20',
'NAME' => '田中',
'ADDRESS' => 'test@test.com',
);
$post_words=array();
foreach( $data as $key => $value ){
$post_words[] = $key. "=" .$value;
}
$post_word = implode("&", $post_words);
curl_setopt($ch,CURLOPT_POSTFIELDS,$post_word);
No comments:
Post a Comment