Let's say I have this array :
$cars = array("Saab","Volvo","BMW","Toyota");
and I also have this Foreach loop to 'manipulate' that array :
foreach ($cars as $carsdata)
{
if (*this is array[0]) {
do something here
}else if (*array[1] ... array[x]){
do another thing here
}
}
any idea how to write that Foreach correctly? thanks.