Put two array together : <p>I try to put two array together, but I will not work.</p>

<pre><code>$vars['project_title'] =  $data['post_title'];
</code></pre>

<p>It works if I only print out the array separately</p>

<pre><code>echo $data['post_title'];
</code></pre>

<p>I have also tried the following but it does not work</p>

<pre><code>$mytitle = $data['post_title'];
$vars['project_title'] = $mytitle
</code></pre>

<p>Have I missed something?
thankful for all your help!</p>
