$media->read($format = null)

Reads the content of the file and returns it

  • $format (string)
    File format to parse as
  • return (string)

Example

// returns the content of the file
echo $media->read();

// parses the content as JSON
dump($media->read('json'));

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