You appear to be a bot. Output may be restricted
Description
Return an array with the specified keys reverted to CamelCase
Usage
$array = bw_recase_atts( $atts, $recase );
Parameters
- $atts
- ( array ) required – the original array that may contain the keys
- $recase
- ( mixed ) required – a string or array of keys to "reCamelCase"
Returns
array the target arraySource
File name: oik/includes/bw_jquery.incLines:
1 to 12 of 12
function bw_recase_atts( $atts, $recase ) { $ratts = $atts; $recases = bw_as_array( $recase ); foreach ( $recases as $key => $value ) { $lowervalue = strtolower( $value ); if ( isset( $atts[$lowervalue] ) ) { $ratts[$value] = $atts[$lowervalue]; unset( $ratts[$lowervalue] ); } } return( $ratts ); }View on GitHub View on Trac