PHP code example of drewpereli / flasher

1. Go to this page and download the library: Download drewpereli/flasher library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

drewpereli / flasher example snippets






$flasher = new Flasher();

$flasher->set("message type", "your message here!"); //Sets message of type "message type" to "your message here".

$flasher->get("message type"); //Returns message of type "message type" (if there is one), and unsets it.

$flasher->message_type = "your message here!";
$message = $flasher->message_type; //"Your message here!"
$message = $flasher->message_type; //null