read()
Similar to fetch()
, you can use it to fetch results from your website, but you can also get content from a folder path that you need.
/**
* @throws Throwable
*
* This is a function used only to retrieve results from an address or file path via the file_get_contents method
*/
public static function read(string $path) : Promise;
Example:
$url = "https://www.google.com/";
System::read($url)->then(function($value) {
var_dump($value);
})->catch(function($reason) {
var_dump($reason);
});
Last updated