Set the body contents of this part.
public setContents ( mixed $contents, array $options = [] ) | ||
$contents | mixed | The part body. Either a string or a stream resource, or an array containing both. |
$options | array | Additional options: - encoding: (string) The encoding of $contents. DEFAULT: Current transfer encoding value. - usestream: (boolean) If $contents is a stream, should we directly use that stream? DEFAULT: $contents copied to a new stream. |