- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
public function generateGUID ()
{
$GUID = $this->generateCharacter().$this->generateCharacter().$this->generateCharacter().$this->generateCharacter().$this->generateCharacter().$this->generateCharacter().$this->generateCharacter().$this->generateCharacter().$this->generateCharacter()."-";
$GUID = $GUID.$this->generateCharacter().$this->generateCharacter().$this->generateCharacter().$this->generateCharacter()."-";
$GUID = $GUID.$this->generateCharacter().$this->generateCharacter().$this->generateCharacter().$this->generateCharacter()."-";
$GUID = $GUID.$this->generateCharacter().$this->generateCharacter().$this->generateCharacter().$this->generateCharacter()."-";
$GUID = $GUID.$this->generateCharacter().$this->generateCharacter().$this->generateCharacter().$this->generateCharacter().$this->generateCharacter().$this->generateCharacter().$this->generateCharacter().$this->generateCharacter().$this->generateCharacter().$this->generateCharacter().$this->generateCharacter().$this->generateCharacter();
return $GUID;
}
из класса для работы с paypal. (скачан с оффсайта)
sectus 16.03.2011 11:34 # 0
bugmenot 16.03.2011 12:35 # +5
Lure Of Chaos 16.03.2011 16:54 # −3
turdman 16.03.2011 18:48 # 0
... also known as GUIDs (Globally Unique IDentifier)
http://tools.ietf.org/html/rfc4122.html
bugmenot 20.03.2011 22:11 # 0
turdman 16.03.2011 18:58 # 0