original_string: public static function random_id($base='random') {
          static $counter = 0;
          static $uniq;
  
          if (!isset($uniq)) {
              $uniq = uniqid();
          }
  
          $counter++;
          return $base.$uniq.$counter;
      }
code: public static function random_id($base='random') {
          static $counter = 0;
          static $uniq;
  
          if (!isset($uniq)) {
              $uniq = uniqid();
          }
  
          $counter++;
          return $base.$uniq.$counter;
      }
code_tokens: public static function random_id ( $ base = 'random' ) { static $ counter = 0 ; static $ uniq ; if ( ! isset ( $ uniq ) ) { $ uniq = uniqid ( ) ; } $ counter ++ ; return $ base . $ uniq . $ counter ; }
docstring: 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
docstring_tokens: Generates random html element id .