public function getModifiedKeys(array $diff) {
    $diff_keys = [];
    if (!empty($diff)) {
      foreach ($diff as $first_parent => $value) {
        // Collect all multidimensional parent keys + path to changed child key.
        if (is_array($value) && !empty($value) && count($value) == 1) {
          $diff_keys[] = $first_parent . '.' . $this->getChildKey($value);
        }
        else {
          $diff_keys[] = $first_parent;
        }
      }
    }

    return $diff_keys;
  }
public function getModifiedKeys(array $diff) {
    $diff_keys = [];
    if (!empty($diff)) {
      foreach ($diff as $first_parent => $value) {
        // Collect all multidimensional parent keys + path to changed child key.
        if (is_array($value) && !empty($value) && count($value) == 1) {
          $diff_keys[] = $first_parent . '.' . $this->getChildKey($value);
        }
        else {
          $diff_keys[] = $first_parent;
        }
      }
    }

    return $diff_keys;
  }
public function getModifiedKeys ( array $ diff ) { $ diff_keys = [ ] ; if ( ! empty ( $ diff ) ) { foreach ( $ diff as $ first_parent => $ value ) { // Collect all multidimensional parent keys + path to changed child key. if ( is_array ( $ value ) && ! empty ( $ value ) && count ( $ value ) == 1 ) { $ diff_keys [ ] = $ first_parent . '.' . $ this -> getChildKey ( $ value ) ; } else { $ diff_keys [ ] = $ first_parent ; } } } return $ diff_keys ; }
Get modified keys from nested array.

Example:
array(
'parent1' => array(
'child1' => array(
'child1-1' => array(
'child1-1-1' => TRUE,
'child1-1-2' => TRUE,
'child1-1-3' => TRUE,
),
),
),
'parent2' => array(
'child1' => TRUE,
),
'parent3' => array(
'child1' => array(
'child1-1' => array(
'child1-1-1' => TRUE,
),
'child2-1' => array(
'child2-1-1' => TRUE,
),
),
),
);
Result:
array(
'parent1.child1.child1-1',
'parent2.child1',
'parent3.child1',
)

@param array $diff
Result from DiffArray::diffAssocRecursive.

@return array
List of modified keys.
Get modified keys from nested array .