title: Array Is Returns a Database Result
body: <p>The problem is that this way is only returning the last column of the database</p>
  
  <pre><code>public function Acentos ( $string ) {
  
     $Acentos = $this-&gt;SelectDados(
         "*",
         "table",
         "",
         array ()
     );
  
     foreach ( $Acentos as $List ) {
  
         $table = array (
  
            $List['slug'] =&gt; utf8_encode ( $List['nome'] )
  
          );
  
      }
  
      return strtr ( $string, $table );
  }
  </code></pre>
  
  <p>I tried to do like this</p>
  
  <pre><code>$Dados = array ();
  
  foreach ( $Acentos as $List ) {
  
      $table = array (
  
         $Dados[] = $List['slug'] =&gt; utf8_encode ( $Dados[] = $List['nome'] )
  
      );
  
   }
  </code></pre>
  
  <p>With array_push gives the following error</p>
  
  <pre><code>public function Acentos ( $string ) {
  
     $Table = array();
     $Acentos = $this-&gt;SelectDados(
        "*",
        "table",
        "",
        array ()
      );
  
      foreach ( $Acentos as $List ) {
  
          array_push ( $Table,
  
           $List['slug'] =&gt; utf8_encode ( $List['nome'] )
  
       );
  
    }
  
    return strtr ( $string, $Table );
   }
  </code></pre>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ')'</p>
  </blockquote>
  
  <p>As I understand it array_push does not accept special characters <code>=&gt;</code> how to fix this?</p>