GuilhermeRamalho

Gera ID - PHP

Apr 8th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.14 KB | None | 0 0
  1. <?php
  2. $str = strtoupper(strrev(uniqid()));
  3. $str = chunk_split($str, 4, '.');
  4. $str[14] = $str[15];
  5. $str = substr($str, 0, -2);
  6. echo $str;
Advertisement
Add Comment
Please, Sign In to add comment