title: Would this work as a UUID generator in PHP?
body: <p>After reading about the "<a href="http://php.net/manual/en/function.uniqid.php" rel="nofollow">uniqid</a>" function in PHP, I went ahead and scripted this:</p>
  
  <pre><code>&lt;?php
  echo implode(
      array_map(
          function(){ return dechex(rand(0, 255)); }
          , range(0, 15)
      )
  );
  </code></pre>
  
  <p>Am I missing something here? A lot of the other solutions seem overcomplicated.</p>