PHP code example of ilbronza / form

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

    

ilbronza / form example snippets


//ad single field in 3rd position of maindata fieldset
        
$fieldsToAdd = [
    'event' => ['text' => 'string|nsertFieldsInPosition(
    $fieldsToAdd,
    $currentFields,
    3
);

//condensed 

$result['mainData']['fields'] = static::insertFieldsInPosition(
    ['event' => ['text' => 'string|