I have the following code:
if ($_POST['submit'] == "Next") { foreach($_POST['info'] as $key => $value) { echo $value; } }
How do I get the foreach function to start from the 2nd key in the array?
For reasonably small arrays, use array_slice to create a second one:
foreach(array_slice($_POST['info'],1) as $key=>$value) { echo $value; }