Your array is defined in the variable $n, so you must access it in the foreach using the same variable.
Also, nothing will happen if you don't output anything.
Code:
<?php
$v; #<-- doesn't do anything.
$n = array("AP","UP","TN","GJ");
foreach($n as $key => $value)
{
echo $value."<br />";
}
// Same thing as saying:
foreach($n as $value)
{
echo $value."<br />";
}
?>
: )
Rich
:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::