Bonjour,
Avec le code suivant,
if($c11!="ON"){for ($k=0;$k<$nbcomp;$k=$k+1){$CP11[$k]=str_replace('(CP1.1).', '', $CP11[$k]);if(strpos($c11,$CP11[$k])){$CP[$k]=$CP[$k]+1;};}}
j'ai :
Notice: Uninitialized string offset: 0 in c:\easyphp1-8\www\gestform10g\seconde\bilan\affichecompelev.php on line 102
Notice: Undefined offset: 2 in c:\easyphp1-8\www\gestform10g\seconde\bilan\affichecompelev.php on line 102
Notice: Undefined offset: 3 in c:\easyphp1-8\www\gestform10g\seconde\bilan\affichecompelev.php on line 102
Notice: Undefined offset: 4 in c:\easyphp1-8\www\gestform10g\seconde\bilan\affichecompelev.php on line 102
C'est surtout pour : Uninitialized string offset !
( je suis dans la suppression des erreurs Notice: )
Le code fonctionne malgré tout ( avec error_reporting(E_ALL ^ E_NOTICE); biensûr ;
Merci