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

Saves new content to the file

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

Example

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

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