<?php
$array = array(a,s,d,f,g,h,j,k,l);
foreach($array as $i => &$a){
foreach($array as $k => &$b){
if($k = 4){
unset($array[1]);
}
}
echo $a . "
";
}
print_r($array);
CODEPAD: http://codepad.org/UoWhrIkv
Why in this example echo
show me only "a"
and print_r
show all good? Is possible to make good showing in loop with echo
?