Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1.         foreach($myArray = [
  2.                     Deal::NAME_CONTACT => Contact::NAME,
  3.                     Deal::LAST_NAME_CONTACT => Contact::LAST_NAME,
  4.                     Deal::SECOND_NAME_CONTACT => Contact::SECOND_NAME
  5.                 ] as $dealFieldName => $contactFieldName) {
  6.             if (array_key_exists($contactFieldName, $arFields))
  7.                 $updateDealFields[$dealFieldName] = $arFields[$contactFieldName];
  8.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement