PHP : Show variable value instead of variable name without concatenating
<p>I tried to get/show the value of <strong>$buttonName</strong> inside a string</p>

<p><strong>$buttonName</strong> is initialize Null by default and some processing afterwards but even if the <strong>$buttonName</strong> is assigned with a string value the value won't display. e.g </p>

<pre><code>$buttonName = "Connect"


echo "Button value is $buttonName";` *//shows '$buttonName' and not "Connect" or whatever value I assigned to it*
</code></pre>

<p>Concatenating strings from php variables will work though,
but I'd like to know what to configure to make this happening or is this possible? (I know its possible as the document tells us but can't see ways how to display variable value without concatenation).</p>

<p><strong>ADDED:</strong> </p>

<p>Another strange thing I found is that even if I don't assign any value (Null) the variable name still display ($buttonName) and without getting any error.  I use wamp.</p>
