2. Different usage of Arrayer - adwins/Arrayer GitHub Wiki
2. Different usage of Arrayer.
Arrayer can process not only $`_`POST array, you can use any string array as well.
/** * Example to use $an_array array: */ $array = new Arrayer($an_array); /** * Also you can use $_GET array. */ $get = new Arrayer($_GET); /** * Or you may add expected variables (with default values if applicable). */ $expected_vars = array( 'username' => '', 'email' => '', 'age' => '', 'password' => '', 'repassword' => '', 'country' => 'RU', ); $post = new Arrayer($_POST, $expected_vars);