PHP code example of lablnet / input

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

    

lablnet / input example snippets

 
$username = input('username');

//in OOP style
use Lablnet\Input;
e');
 
$username = escape(input('username'));

//in OOP style
use Lablnet\Input;
nput('username'));
 
if (is_ajax('name')) {
	//ajax
}

//in OOP style
use Lablnet\Input;
jax
}
 
$comment = restore_line_break(escape(input('username')));

//in OOP style
use Lablnet\Input;
ks(Input::clean(Input::input('username')));