PHP code example of p4bloch / console-validable-question
1. Go to this page and download the library: Download p4bloch/console-validable-question 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/ */
p4bloch / console-validable-question example snippets
$question = new ValidableQuestion('Who are you?', ['', ['numeric'], 25);
$question = new ValidableQuestion('Enter your e-mail', ['