Here's the generic workaround I am using:
http://codepad.viper-7.com/2tiPvN
$j=0;
$paper = array('copier' => "Copier and Multipurpose",
'inkjet' => "Injet Printer",
'laser' => "Laser Printer",
'photo' => "Photo Paper");
foreach ($paper as $index => $description)
{
echo "$j, $index: $description
";
$j++;
}
I want to have numeric identifiers and keyword identifiers.
Meanwhile, because foreach ($paper as $description) gives the description and
foreach ($paper as $index => $description)
gives the index and then the description..., is there a way to just get the index in a foreach, without having to specify a variable for the description?