$communications = $person->communications; for($i=0; $i<count($communications); $i++) { $communication = $communications[$i]; $communication->communicationValue .= "U"; } } $updated_person = $apiConsumer->updatePerson($person); ?> <pre><?php print_r($updated_person); ?></pre> <?php */ // // Get Household Members // $household_id = 15809155; $requestUrl = $apiConsumer->getBaseUrl() . AppConfig::$f1_household_people; $requestUrl = str_replace("{householdID}", $household_id, $requestUrl); $result = $apiConsumer->doRequest($requestUrl); $json_array = json_decode(strstr($result, '{"people":{'), true); // Results found? if (isset($json_array['people']['person'])) { $json_length = count($json_array['people']['person']); } for ($i = 0; $i < $json_length; $i++) { $x = $json_array['people']['person'][$i]; $first_name = $x['firstName']; $last_name = $x['lastName']; $marital = $x['maritalStatus']; $gender = $x['gender']; $birthdate = $x['dateOfBirth']; $h = '';