PHP code example of lagan / template-optionselect

1. Go to this page and download the library: Download lagan/template-optionselect 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/ */

    

lagan / template-optionselect example snippets


'options' => [
	'option_a' => [ 'name' => 'Option A' ],
	'option_b' => [ 'name' => 'Option B' ]
]

'validate' => 'inlist({"list": {"0":"option_a", "1":"option_b"}})'