public static function tempFile(/*string*/ $prefix = '') {
    $prefix = @trim($prefix);
    if('' === $prefix) {
      $prefix = time() . '-' . rand(11111, 99999);
    }
    $prefix .= '.';
    $tempPath = tempnam(sys_get_temp_dir(), $prefix);
    return $tempPath;
  }
public static function tempFile(/*string*/ $prefix = '') {
    $prefix = @trim($prefix);
    if('' === $prefix) {
      $prefix = time() . '-' . rand(11111, 99999);
    }
    $prefix .= '.';
    $tempPath = tempnam(sys_get_temp_dir(), $prefix);
    return $tempPath;
  }
public static function tempFile ( /*string*/ $ prefix = '' ) { $ prefix = @ trim ( $ prefix ) ; if ( '' === $ prefix ) { $ prefix = time ( ) . '-' . rand ( 11111 , 99999 ) ; } $ prefix .= '.' ; $ tempPath = tempnam ( sys_get_temp_dir ( ) , $ prefix ) ; return $ tempPath ; }
Creates a new temporary file in the system's default temporary directory.

@param string $prefix to append to the name (optional)
@see \tempnam()
@see \sys_get_temp_dir()
@return string|FALSE temporary file's location, FALSE on error
Creates a new temporary file in the system s default temporary directory .