Przyklad:
[php:1:658baaf040]<?php
$arrTest[0] = 'index 0';
$arrTest[1] = 'index 1';
$arrTest[3] = 'index 3';
$arrTest[2] = 'index 2';
foreach( $arrTest as $var ){
echo $var.'<br>';
}
?>[/php:1:658baaf040]
Wynik:
Cytat
index 0
index 1
index 3
index 2
index 1
index 3
index 2
Czy wynikiem nie powinno byc:
Cytat
index 0
index 1
index 2
index 3
index 1
index 2
index 3
:?: