set_flashdata()

public function set_flashdata(string $msg): void

The set_flashdata() method is supported by a dedicated helper function. For guidance on how to use it, click here.