This file contains hidden or 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 | |
return [ | |
'AP' => 'Andhra Pradesh', | |
'AR' => 'Arunachal Pradesh', | |
'AS' => 'Assam', | |
'BR' => 'Bihar', | |
'CT' => 'Chhattisgarh', | |
'GA' => 'Goa', | |
'GJ' => 'Gujarat', |
This file contains hidden or 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 | |
return [ | |
'AF' => 'Afghanistan', | |
'AX' => 'Aland Islands', | |
'AL' => 'Albania', | |
'DZ' => 'Algeria', | |
'AS' => 'American Samoa', | |
'AD' => 'Andorra', | |
'AO' => 'Angola', |
This file contains hidden or 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 | |
/** | |
* A simple function to return the ordinal of any number | |
* E.g: number = 1 => Ordinal = st | |
* E.g: number = 23 => Ordinal = rd | |
* | |
* @param int $number | |
* @return string | |
*/ |
This file contains hidden or 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 | |
/** | |
* A simple function to calculate percentage without checking the divisor for zero. | |
* Also includes precision point | |
* | |
* @param $got | |
* @param $out | |
* @param int $precision | |
* @return float|int |
NewerOlder