Good afternoon, I encountered such a problem. There is an associative array.
For example.
$foo = array('x'=>'x_val','y'=>'y_val','z'=>'z_val'); And there is a foreach .
foreach ($foo as $key=>$val){ //Тут какая то логика } We need to take the next $ val in the current iteration. Well or $key .
How can this be achieved?
null. - Raz Galstyan$i=0;before loop andprint_r(array_slice($foo, ++$i, 1));- splash58