method isUid documentation in bbn\Str

Checks if the string is a valid UID string.

Example

Str::isUid('22e4f42122e4f42122e4f42122e4f421'); // (bool) true $this->assertFalse(Str::isUid('22e4f42122e4f4212')); // (bool) false function($st) { return \is_string($st) && (\strlen($st) === 32) && ctype_xdigit($st);// && !mb_detect_encoding($st); }

Checks if the string is a valid UID string. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.