<?php
namespace Westdc\Helpers;
class Tools {
/**
* 判断是否为UUID字符串
* 返回结果为0或1
*/
public static function isUUID($uuid) {
return preg_match("/^[0-9A-Za-z]{8}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{12}$/",$uuid);
}