Name a variable on the fly
<p>I am accepting a variable into a function.</p>

<p>For example, the variable is called <code>$field</code> and I then want to name a variable by what is inside the <code>$field</code> variable.</p>

<p>Say <code>$field = 'randomName'</code>, I want my variable to be <code>$randomName</code>.</p>

<p>Is this possible?</p>

<p>Thanks.</p>
