How can I retrieve all of the values from variable arrays within a variable array?
EDIT: I most likely don't know how to explain it well, but I want to know how I can display the values in $oranges and $melon within $variables. I thought it would be as simple as setting variables and placing them into an array but it returns "Array".
Example:
<?php
$oranges = array("0","1");
$melon = array("2","3");
$variables = array($oranges,$melon);
$i = 1;
foreach ($variables as $var) {
$name = "txt".$i;
echo "<input type='text' name='".$name."' value='".$var."' />";
$i++;
echo "<input type='file' name='image'>";
}
?>