Source Rally PHP Community Scripts .. Sign up .. Login
returning an array from function
Access: Public      Tags: arrays
Add to favourites       Subscribe comments       Copy code       Bookmark
$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"&nbsp;&nbsp;<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);
Add to favourites       Subscribe comments       Copy code       Bookmark
Sign up to add your own comment here!

Shared by:

hamid_awais

Mail user Add to friends
All user contributed content is available under the unless specified otherwise.
Remaining copyrights Regin Gaarsmand © 2006-2008
About www.SourceRally.net