| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Mambo 4 * @author Mambo Foundation Inc see README.php 5 * @author Mambo Foundation Inc see README.php 6 * @copyright (C) 2000 - 2009 Mambo Foundation Inc. 7 * See COPYRIGHT.php for copyright notices and details. 8 * @license GNU/GPL Version 2, see LICENSE.php 9 * 10 * Redistributions of files must retain the above copyright notice. 11 * 12 * Mambo is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation; version 2 of the License. 15 */ 16 17 /** ensure this file is being included by a parent file */ 18 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); 19 20 if (!function_exists( 'array_change_key_case' )) { 21 if (!defined('CASE_LOWER')) { 22 define('CASE_LOWER', 0); 23 } 24 if (!defined('CASE_UPPER')) { 25 define('CASE_UPPER', 1); 26 } 27 function array_change_key_case( $input, $case=CASE_LOWER ) { 28 if (!is_array( $input )) { 29 return false; 30 } 31 $array = array(); 32 foreach ($input as $k=>$v) { 33 if ($case) { 34 $array[strtoupper( $k )] = $v; 35 } else { 36 $array[strtolower( $k )] = $v; 37 } 38 } 39 return $array; 40 } 41 } 42 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Feb 8 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |