Last updated: Mon, Apr 17, 2023 1:21 pm
Return to Knowledgebase
Data Type | Description of Returned Data |
---|---|
array | Returns an array of messages with keys for each message type. |
// Set session messages
Session::setGenMsg('Welcome!');
Session::setValErr(['Username is required', 'Password is required']);
// Get and parse session messages
$messages = parseSessionMessages();
echo $messages['genMsg']; // Output: Welcome!
echo $messages['valErr']; // Output: Username is required Password is required