Using the same random string multiple times
<p>I'm trying to create a system that allows me to create a folder, the name being randomly selected through the below piece of code.</p>

<pre><code>$randomString = substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, $length);
</code></pre>

<p>My problem is that I need to use the same random string twice, this doesn't work though as a new random string is generated every time I use the variable. What method could I use to get a better result? Much appreciated!</p>
