title: Array to string conversion problem in my php
body: <p>I'm trying to add this line of code in my  </p>
  
  <pre><code>=&gt; array('name'=&gt;'amount', 'type'=&gt;'date', 'ord'=&gt;'desc')
  </code></pre>
  
  <p>but i'm having problems keep saying </p>
  
  <blockquote>
    <p>Array to string conversion </p>
  </blockquote>
  
  <p>i don't know what do to ?</p>
  
  <p>Here is my code where i put the code </p>
  
  <pre><code>if ($showdims)
      $col = array(_("Period"), _("Amount"), _("Dim. incl."), _("Last Year"));
  else
      $col = array(_("Period"), _("Amount") =&gt; array('fun'=&gt;'trans_view'),_("Last Year"));
  
  table_header($col);
  </code></pre>
  
  <p>it would see this when and give hyperlink for my database </p>
  
  <pre><code>function trans_view($trans)
  {
      return get_budget_trans_view_str(SA_BUDGETENTRY, $trans["amount"]);
  }
  function get_budget_trans_view_str($type, $trans_no, $label="", 
      $icon=false, $class='', $id='')
      {
          $viewer = "gl/view/";
          if ($type == SA_BUDGETENTRY)
          $viewer .= "budget_view.php";
  
          else
          return null;
  
      if ($label == "")
          $label = $trans_no;
  
      return viewer_link($label, $viewer, $class, $id,  $icon);
  
      }
  </code></pre>