uuid() 공개 정적인 메소드

Returns Version 4 UUID format: xxxxxxxx-xxxx-4xxx-Yxxx-xxxxxxxxxxxx where x is any random hex digit and Y is a random choice from 8, 9, a, or b.
또한 보기: http://stackoverflow.com/questions/2040240/php-function-to-generate-v4-uuid
public static uuid ( ) : string
리턴 string
예제 #1
0
파일: StringTest.php 프로젝트: jbzoo/utils
 public function testGenerateUUID()
 {
     isNotSame(Str::uuid(), Str::uuid());
     isNotSame(Str::uuid(), Str::uuid());
     isNotSame(Str::uuid(), Str::uuid());
 }