PHP code example of raulsmelo / validarformulario
1. Go to this page and download the library: Download raulsmelo/validarformulario 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/ */
raulsmelo / validarformulario example snippets
M\ValidateForm;
/**
* @param $_POST super global do PHP que contém todos o input que tem o atributo name declarado
*
* $post recebe uma novo array com os valores filtrados
*
* OBS: Caso alguns dos valores de entradas falhe na aplicação dos filtros e retornado false
* */
$post = (new ValidateForm($_POST))->getPostsValid();