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 | |
class Config | |
{ | |
private static $environments = ['dev', 'qa', 'prod']; | |
private static $filenames = ['assets', 'libraries']; | |
private static $filepath = "/"; | |
private static $environment = NULL; | |
private static $file_data = NULL; |
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 | |
/** | |
* String replace nth occurrence - case-insensitive | |
* | |
* @param type $search Search string | |
* @param type $replace Replace string | |
* @param type $subject Source string | |
* @param type $occurrence Nth occurrence | |
* @return type Replaced string | |
*/ |
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 | |
/** | |
* String replace nth occurrence | |
* | |
* @param type $search Search string | |
* @param type $replace Replace string | |
* @param type $subject Source string | |
* @param type $occurrence Nth occurrence | |
* @return type Replaced string | |
*/ |
NewerOlder