File: missing.php3

package info (click to toggle)
freeradius 2.0.4%2Bdfsg-6
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 14,884 kB
  • ctags: 9,109
  • sloc: ansic: 73,328; sh: 12,392; php: 6,679; perl: 3,075; makefile: 1,316; sql: 1,197; python: 171; tcl: 35; sed: 23
file content (13 lines) | stat: -rw-r--r-- 261 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
function array_change_key_case($input,$case)
{
	$NEW_ARR = array();
	foreach ($input as $val => $key){
		if ($case == CASE_UPPER)
			$K = strtoupper($key);
		else if ($case == CASE_LOWER)
			$K = strtolower($key);
		$NEW_ARR[$K] = $val;
	}

	return $NEW_ARR;
}