public static function random_id($base='random') {
        static $counter = 0;
        static $uniq;

        if (!isset($uniq)) {
            $uniq = uniqid();
        }

        $counter++;
        return $base.$uniq.$counter;
    }
public static function random_id($base='random') {
        static $counter = 0;
        static $uniq;

        if (!isset($uniq)) {
            $uniq = uniqid();
        }

        $counter++;
        return $base.$uniq.$counter;
    }
public static function random_id ( $ base = 'random' ) { static $ counter = 0 ; static $ uniq ; if ( ! isset ( $ uniq ) ) { $ uniq = uniqid ( ) ; } $ counter ++ ; return $ base . $ uniq . $ counter ; }
Generates random html element id.

@staticvar int $counter
@staticvar type $uniq
@param string $base A string fragment that will be included in the random ID.
@return string A unique ID
Generates random html element id .