I've got the following array
$flavors_jn = array
('Lamb & Rice','Beef','Variety (Beef, Lamb)');
and I want to loop through it an get the data back out. I've tried using while, to no avail. Basically I don't know wha to put in the [] part. E.g.
while ($flavors_jn)
{
print "$flavors_jn[]";
}
gives the error:
Parse error: parse error, expecting T_STRING' orT_VARIABLE' or `T_NUM_STRING'
If I put anything in the [] I get an infinite loop setup.
Here's the output for printr($flavors_jn);
Array ( [0] => Lamb & Rice [1] => Beef [2] => Variety (Beef, Lamb) )
I think I'm close, but I don't have my PHP book with me and this is driving me nuts.
TIA