PHP: Using a variable inside a double quotes
<p>please check the following code. </p>

<pre><code>$imagebaseurl = 'support/content_editor/uploads/$name';
</code></pre>

<p>The <code>$imagebaseurl</code> is a variable that is containing a link to my image folder (uploads) and inside the folder I have some other folders which are named after my users name. for example: I have a user who's name is john, so the the link should look like this-> <code>support/content_editor/uploads/john</code>.</p>

<p>The main idea is when any user is logged in and browses his image gallery I want to take him to his own gallery which basically is named after his name.</p>

<p>When he will visit the gallery the value of <code>$name</code> in the link will come from the user's login name (from session). Now the problem is as you probably have already understood that the placement of <code>$name</code> in the above link is wrong and that is why it is not working. I am getting this whole URL> (support/content_editor/uploads/$name) instead of (support/content_editor/uploads/john)</p>

<p>Now could you please tell me how to use the <code>$name</code> in this <code>$imagebaseurl = 'support/content_editor/uploads/$name';</code></p>
