$media->write($content = null, $format = null)

Alternative for save

  • $content (string)
  • $format (string)
    json or yaml (defaults to PHP serialization)
  • return (boolean)

Example

$media->write(array(
    'foo' => 'bar',
    'bar' => 'foo'
), 'json');

$media->write('this is an arbitrary string');

Is something missing or incorrect? Edit this page on Github…