Adding content to variable
<p>sorry I don't know the exact term for this.
I'ld like to add content to "mymeta" from the loops and echos.
I tried this but it's not working:</p>

<pre><code>     $mymeta = if (strlen($finalArray['Title']) &gt; 0){
       echo $finalArray['Title'] . " | ";
    }   
    +
    else if (strlen($finalArray['Name']) &gt; 0){
       echo $finalArray['Name'] . " | ";
    }   
    +
    else if (strlen($finalArray['Caption']) &gt; 0){
       echo $finalArray['Caption'] . " | ";
    } 
+
echo $finalArray['Date'] . " | " ;
</code></pre>

<p>Thanks for tips.</p>
