original_string: public function generateId($intLength = 8)
      {
          $strChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
          $strReturn = '';
  
          srand((double) microtime() * 1000000);
  
          for ($i = 1; $i <= $intLength; $i ++) {
              $intNum = rand() % (strlen($strChars) - 1);
              $strTmp = substr($strChars, $intNum, 1);
              $strReturn .= $strTmp;
          }
  
          return $strReturn;
      }
code: public function generateId($intLength = 8)
      {
          $strChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
          $strReturn = '';
  
          srand((double) microtime() * 1000000);
  
          for ($i = 1; $i <= $intLength; $i ++) {
              $intNum = rand() % (strlen($strChars) - 1);
              $strTmp = substr($strChars, $intNum, 1);
              $strReturn .= $strTmp;
          }
  
          return $strReturn;
      }
code_tokens: public function generateId ( $ intLength = 8 ) { $ strChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" ; $ strReturn = '' ; srand ( ( double ) microtime ( ) * 1000000 ) ; for ( $ i = 1 ; $ i <= $ intLength ; $ i ++ ) { $ intNum = rand ( ) % ( strlen ( $ strChars ) - 1 ) ; $ strTmp = substr ( $ strChars , $ intNum , 1 ) ; $ strReturn .= $ strTmp ; } return $ strReturn ; }
docstring: Generate a unique ID
  @param integer $intLength ID length
  @return string Generated ID
docstring_tokens: Generate a unique ID