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 | |
/** | |
* Checks if an array is associative or numeric | |
* | |
* @param array $arr | |
*/ | |
function isAssoc($arr) { | |
return is_array($arr) ? (array_keys($arr) !== range(0, count($arr) - 1)) : false; | |
} |
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 | |
/** | |
* Sorts an array by key | |
* | |
* @param array $arrData | |
* @param string $strKey | |
* @param bool $bolAsc | |
*/ | |
function sortArray($arrData, $strKey, $bolAsc=true) { |
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 | |
/** | |
* Utility functions to parse and generate Excel files using PHPexcel | |
* | |
* @author Peter-Christoph Haider | |
*/ | |
/** | |
* Parses an excel file into an array |
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 | |
/** | |
* Utility functions to work with Command Line Interfaces | |
* | |
* @author Peter-Christoph Haider | |
*/ | |
/** | |
* Initilizes CLI arguements |
NewerOlder