<?php $chars = array(0,1,2,3,4,5,6,7,8,9); $serial = ''; $max = count($chars)-1; for($i=0;$i<20;$i++){ $serial .= (!($i % 5) && $i ? '-' : '').$chars[rand(0, $max)]; }
You have javascript disabled. You will not be able to edit any code.