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 | |
// PHP 5.6 | |
usort($array, function($a, $b) { | |
if ($a == $b) { | |
return 0; | |
} | |
return ($a < $b) ? -1 : 1; | |
}); |
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 | |
/** | |
* hl - syntax highlight print_r analog | |
* @author Oleg Kravchenko <lex69@list.ru> | |
*/ | |
static function hl($value, $return = false) | |
{ | |
// color_theme for hl | |
ini_set('highlight.string', '#99CF50'); | |
ini_set('highlight.keyword', '#F8F8F8'); |