을 반환합니다. 함수를 호출 할 때마다 "Array"라는 단어가 반환됩니다. print_r을 사용했기 때문에 아무 것도주지 않았습니다.반환 내가 여기에이 코드를 가지고있는 단어 배열
나는 다음과 같이이 함수를 호출 :
// prepare the sales payload
$sales_payload = array(
'organization_id' => $getOrg['data']['0']['id'],
'contact_id' => $contact_id,
'status' => 'Open',
'subject' => " ".str_replace($strToRemove, "", $_POST['billing_myfield12'])." - ".getproductList(),
'start_date' => date("Y-m-d"), // set start date on today
'expected_closing_date' => date("Y-m-d",strtotime(date("Y-m-d")."+ 14 days")), // set expected closing date 2 weeks from now
'chance_to_score' => '10%',
'expected_revenue' => 0, //set the expected revenue
'note' => $_POST['order_comments'],
'progress' => array(
'id'=>'salesprogress:200a53bf6d2bbbfe' //fill a valid salesprogress id to set proper sales progress
),
"custom_fields" => [["actief_in_duitsland"=>$value]],
);
공지 사항 내가 여기라고 : 나는 지금의 캐릭터
$allproductname=implode(" + ",$product_names);
return $allproductname;
을 만들 때 사용
'subject' => " ".str_replace($strToRemove, "", $_POST['billing_myfield12'])." - ".getproductList(),
가 작동 배열과 그 항목을 원한다. 어떻게해야합니까? 이 라인
str_replace($strToRemove, "", $_POST['billing_myfield12'])." - ".getproductList()
당신이 문자열로 제품 이름을 배열로 변환됩니다 호출하여
'위해서 var_dump()를 사용합니다'??? –
내가 더 문자열 –
해보자 끈! 문자열에 연결할 때 배열을 어떻게 가질 수 있습니까? "-".getproductList() –