fetch

1.0 1.1 1.2 1.3

Reads a file

<?php
fetch(string $file, [ string $assign = null ])
  • file: path or URI of the file to read (however reading from another website is not recommended for performance reasons)
  • assign: if set, the file will be saved in this variable instead of being output