uuid()
uuid() : string
Generate a (hopefully) unique, time-based UUID
Returns
string —UUID
CEO String utilities
None of these should be considered cryptographically secure. Yo.
parseSrn(string $srn) : array
Parse a SRN into its component parts. Returns an array with: * client * appid * resource * uuid * extra
Example:
use Ceo\Core\Util\String;
var_export(String::parseSrn('srn:tsn:ceo-core/user:ec3f361b-6ca7-4d97-8970-099ea4b19419'));
Would give you:
[
'client' => 'tsn',
'appid' => 'ceo-core',
'resource' => 'user',
'uuid' => 'ec3f361b-6ca7-4d97-8970-099ea4b19419',
'extra' => ''
]
| string | $srn |