PHP code example of ppro / hw4

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

    

ppro / hw4 example snippets



//файл
$emailValidator = new Ppro\Hw4\Email\Validator('/path_to_file/file.txt');
var_dump($emailValidator->validate());

//строка
$emailValidator = new Ppro\Hw4\Email\Validator();
echo $emailValidator->validateEmail('[email protected]');