file.print(quote);
os.print(quote);
  public Value fputcsv(Env env,                       @NotNull StreamResource file,                       @NotNull ArrayValue value,                       @Optional String delimiter,                       @Optional String enclosure)  {    // php/1636    try {      if (file == null)	return BooleanValue.FALSE;      if (value == null)	return BooleanValue.FALSE;      char comma = ',';      char quote = '\"';      if (delimiter != null && delimiter.length() > 0)	comma = delimiter.charAt(0);      if (enclosure != null && enclosure.length() > 0)	quote = enclosure.charAt(0);      int writeLength = 0;      boolean isFirst = true;      for (Value data : value.values()) {	if (! isFirst) {	  file.print(comma);	  writeLength++;	}	isFirst = false;	String s = data.toString();	int strlen = s.length();	writeLength++;	file.print(quote);	for (int i = 0; i < strlen; i++) {	  char ch = s.charAt(i);	  if (ch != quote) {	    file.print(ch);	    writeLength++;	  }	  else {	    file.print(quote);	    file.print(quote);	    writeLength += 2;	  }	}	file.print(quote);	writeLength++;      }      file.print("\n");      writeLength++;      return LongValue.create(writeLength);    } catch (IOException e) {      throw new QuercusModuleException(e);    }  }