PHP - it outputs as $sitename instead of example.com
<p>I'm creating a language file - content modifying file - for my website so that I can change text over multiple websites in my admin panel.  I have everything working except one thing.  When I use a standard lang.php file with the contents like this:</p>

<pre><code>$error_page_title = "$sitename | PAGE ERROR";
</code></pre>

<p>and use</p>

<pre><code>&lt;? echo $error_page_title ?&gt;
</code></pre>

<p>I get: </p>

<p>xxx.com | PAGE ERROR to appear on my website.  Perfect, exactly what I want. Reflects the $sitename in my config file and outputs the correct website name.</p>

<p>When I do it as a function:</p>

<pre><code>function langString($lang_id) {
$lang_result = mysql_query("SELECT lang_string as phrase FROM lang WHERE lang_id='$lang_id'");
$lang_row = mysql_fetch_array($lang_result); 
return $lang_row[phrase];
}
</code></pre>

<p>and use</p>

<pre><code>&lt;? echo langString(3); ?&gt;
</code></pre>

<p>I get:</p>

<p>$sitename | PAGE ERROR appearing on my website.  Not what I want... Arrr!</p>

<p>How can I get it so that my output is recognized as php instead of text?  I tried a bunch of things but just can't get this to work.</p>

<p>Thanks for all your help!</p>
