generate unique id php 20 digits code example Example: php unique id uniqid ([ string $prefix = "" [, bool $more_entropy = FALSE ]] ) : string