Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function trk_cleancfg( &$config = array() )
- {
- $config_temp = $config;
- $config = array();
- foreach( $config_temp as $k => $v )
- {
- if( is_integer( $k ) )
- {
- if( is_array( $v ) )
- {
- foreach( $v as $k2 => $v2 )
- {
- $config[ $k2 ] = $v2;
- }
- }
- elseif( is_string( $v ) )
- {
- $config[ $v ] = '';
- }
- }
- }
- unset( $config_temp );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement