[11] => PodioDateItemField Object ( [__attributes:PodioObject:private] => Array ( [field_id] => 124463765 [type] => date [external_id] => birthday-2 [label] => Birthday [values] => Array ( [0] => Array ( [start] => 1980-01-15 00:00:00 [start_date_utc] => 1980-01-15 [start_time_utc] => [start_time] => [start_utc] => 1980-01-15 [start_date] => 1980-01-15 )
我尝试了很多变种:
$mr_dob_data1 = $client->fields[11]->__attributes["values"][0]["start_date"];
答案 0 :(得分:1)
这是一个PHP对象,所以你可以像这样访问它:
$mr_dob_data1 = $client->fields[11]->values[0]["start_date"];
答案 1 :(得分:0)
我知道这是一个日期字段,这里的代码有效:
$mr_dob_data = date_format($client->fields[11]->values['start'], "d M Y");