mco_att
🔧 comparaison
Comparaison des données des deux environnements
function comparaison(): array
{
$difference = array();
$traiter =[];
foreach ($this->data1 as $key1 => $attribut_env1) {
$uniqueKey = '';
foreach ($this->parametre['key'] as $key => $key_id){
if($key == 'id_type'){
$uniqueKey .= (!empty($uniqueKey)?'_'.$this->objets[$attribut_env1[$key_id]]:$this->objets[$attribut_env1[$key_id]]);
}else {
$uniqueKey .= (!empty($uniqueKey) ? '_' . $attribut_env1[$key_id] : $attribut_env1[$key_id]);
// ... (truncated)
⚙️ Parameters
- $data_env1 (array)
- $data_env2 (array)
↩️ Returns
(array)