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
| { | |
| "j F Y": "8 October 2021", | |
| "d F Y": "08 October 2021", | |
| "j n Y": "8 10 2021", | |
| "d n Y": "08 10 2021", | |
| "j m Y": "8 10 2021", | |
| "d m Y": "08 10 2021", | |
| "j M Y": "8 Oct 2021", | |
| "d M Y": "08 Oct 2021", | |
| "j F y": "8 October 21", |
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
| /** | |
| * Converts a delimited string into a grammatically correct comma-separated sentence. | |
| * E.g. andList('pdf,doc,xls') = 'pdf, doc, and xls'. | |
| * And optional mutator function can be applied to each element. | |
| * E.g. andList('pdf,doc,xls', 'strtoupper') = 'PDF, DOC, and XLS' | |
| * @param $string | |
| * @param string $mutator | |
| * @return string | |
| */ | |
| function andList($string, $delimiter = ',', $mutator = '') |
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
| /** | |
| * Two letter avatars for https://atworkathome.co | |
| * CSS not included. | |
| **/ | |
| /** | |
| * Get the 2-letter initials of the user. Uses the | |
| * initials of the first and last words/names in $name. | |
| * @param $name | |
| * @return string |