Function Mail_dispatcher_smtp->fwrite

Definitions

sources/mail.php

  • Wrapper for fwrite that adds logging.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$handle resource No No required parameter N/A N/A The file handle
$text string No No required parameter N/A N/A The string to write to the file

Returns

  • The number of bytes written (false: error)
  • Type: ~integer
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Wrapper for fwrite that adds logging.
 *
 * @param  resource $handle The file handle
 * @param  string $text The string to write to the file
 * @return ~integer The number of bytes written (false: error)
 */

protected function fwrite($handle, string $text)