This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$countries = array | |
( | |
'AF' => 'Afghanistan', | |
'AX' => 'Aland Islands', | |
'AL' => 'Albania', | |
'DZ' => 'Algeria', | |
'AS' => 'American Samoa', | |
'AD' => 'Andorra', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select name="county"> | |
<option value="antrim">Antrim</option> | |
<option value="armagh">Armagh</option> | |
<option value="carlow">Carlow</option> | |
<option value="cavan">Cavan</option> | |
<option value="clare">Clare</option> | |
<option value="cork">Cork</option> | |
<option value="derry">Derry</option> | |
<option value="donegal">Donegal</option> | |
<option value="down">Down</option> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Generate random n-length string | |
* | |
* Method will generate random string based on given guidelines first parameter is length of returned string, | |
* next three parameters define which characters will be used to generate output. | |
* | |
* @param $length | |
* @param bool $alphabetCharacters if set to true, output may contain characters from aA to zZ (65-90 AND 97-122 in ASCII) | |
* @param bool $numbersCharacters if set to true, output may contain characters from 0 to 9 (48-57 in ASCII) |