Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach($myArray = [
- Deal::NAME_CONTACT => Contact::NAME,
- Deal::LAST_NAME_CONTACT => Contact::LAST_NAME,
- Deal::SECOND_NAME_CONTACT => Contact::SECOND_NAME
- ] as $dealFieldName => $contactFieldName) {
- if (array_key_exists($contactFieldName, $arFields))
- $updateDealFields[$dealFieldName] = $arFields[$contactFieldName];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement