$pubids=array();
$pubids=doc_publisher($DocId);
$ids=implode(",",$pubids);
if(strlen($ids)<=0)
////////////////////////////
$strFileNameG is an array
foreach ($strFileNameG as $value)
{
//echo $value[0];
if (!(empty($value)))
{
echo" <a Target =\" _Blank\" href=\"Uploads/$value\"><font class=\"optionstyle\">GuideLines</font></a><br>";
// echo "hellooo";
}
}
//////////////////////copy one array in another
//////////////////
$displayed=array();
$HTTP_SESSION_VARS ["docids"] = $displayed;
for($i=$this->get_pointer();$i<$end;$i++)
{
$displayed[$i]=$DocId[$i];
}
//////////////////////////
You can clear the contents of an array by unsetting it:
http://www.php.net/manual/function.unset.php3
unset($a);