str::download

Forces a download of the string as text file

str::download($string, $name = null)

Parameters

$string (string)
$name (string)
Optional name for the downloaded file

Return values