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 | |
/** | |
* Creates a human readable list of an array | |
* | |
* @param string[] $ranges array to list items of | |
* @param string $glue normal glue between items | |
* @param string $last glue between last two items | |
* | |
* @remarks works with 0, 1, 2 or 3+ items | |
* @returns string 'item1, item2, item3 or item4' |