Je ne sais pas pourquoi je reçois un Undefined offset Avis sur ce point:php Undefined offset en fonction simple()
<?php
$numbers = array('1','2','3');
$total = 0;
for($i=0;$i<=sizeof($numbers); $i++) {
$total += $numbers[$i];
echo $total;
}
?>
Sortie:
Avis: Undefined offset : 3 dans E: \ php \ arrays \ array_1.php sur ligne 17