rendered paste body$nombreLigne = 0; // Remplacement des constantes par leur données foreach($info[$key[0]] as $constant => $data) { echo "<br/>".$constant; //echo "<br/>".$data['DATE']; foreach($data as $constant => $dataConstant) { echo "<br/>2nde boucle FOREACH ".$dataConstant; $dataConstant = (file_exists($data)) ? $this->includeFile($data) : $data; //echo "TEST DE ".$blockTag1[$nombreLigne]." == \<\!-- BEGIN2 \-\-\><br/>"; if($blockTag1[$nombreLigne] == htmlentities('<!-- BEGIN2 '.$key[1].' -->')){ echo "PLOOOOP DETECTION TAG 2"; } $nombreLigne++; } //$data = (file_exists($data)) ? $this->includeFile($data) : $data;; //$blockTag = preg_replace('`{'.$type.'.'.$constant.'}`', $data, $blockTag); }