set_flashdata()

function set_flashdata(string $msg): void

Description

Sets a flash message in the session.

Parameters

Parameter Type Description Default
$msg string The message to be set as flash data. N/A

Return Value

Type Description
void This function does not return anything.

Example Usage