title: How to make a variable always generate a random unique value when called in PHP?
body: <p>Let's say we have this variable:</p>
  
  <pre><code>$random = substr(str_shuffle("abcdefghijklmnopqrstuvwxyz"), 0, 5);
  </code></pre>
  
  <p>It will generate a random string that is 5 letters long</p>
  
  <p>E.g.</p>
  
  <pre><code>echo "Hi" . $random    ========  Hi qwueh
  </code></pre>
  
  <p>The problem with this is that only one random string is given to the variable <code>$random</code>. To generate a new string, you'll have to refresh the page.</p>
  
  <p>Is there a way to retrieve a different, unique string every time the variable <code>$random</code> is called upon on the same page?</p>
  
  <p>E.g.</p>
  
  <pre><code>echo "Hi" . $random    ========  Hi qwueh
  echo "Hi" . $random    ========  Hi dasij
  echo "Hi" . $random    ========  Hi furhf
  echo "Hi" . $random    ========  Hi wuejf
  </code></pre>