1, 'digg' => 1, 'stumbleupon' => 1, 'twitter' => 1, 'reddit' => 1, 'newsvine' => 1, 'facebook' => 1, 'myspace' => 1, 'yahoo' => 1, 'linkedin' => 1, 'technorati_favorite' => 1, 'google_plus_one' => 1, ) $t = array_intersect_key($links, $services) array ( 'google_plus_one' => array ( 'name' => 'Google Plus One', 'link' => '', 'description' => 'Plus it', 'javascript' => array ( 0 => 'https://apis.google.com/js/plusone.js', 1 => 'google_plus_one.js', ), 'style' => 4, 'callback' => 'ws_google_plus_one_data', 'module' => 'widget_services', ), array_merge($services, $t) // Same as array_merge($services, array_intersect_key($links, $services)) array ( 'delicious' => 1, 'digg' => 1, 'stumbleupon' => 1, 'twitter' => 1, 'reddit' => 1, 'newsvine' => 1, 'facebook' => 1, 'myspace' => 1, 'yahoo' => 1, 'linkedin' => 1, 'technorati_favorite' => 1, 'google_plus_one' => array ( 'name' => 'Google Plus One', 'link' => '', 'description' => 'Plus it', 'javascript' => array ( 0 => 'https://apis.google.com/js/plusone.js', 1 => 'google_plus_one.js', ), 'style' => 4, 'callback' => 'ws_google_plus_one_data', 'module' => 'widget_services', ), After: if (isset($services) && is_numeric(key($services))) { $services array ( 'delicious' => 1, 'digg' => 1, 'stumbleupon' => 1, 'twitter' => 1, 'reddit' => 1, 'newsvine' => 1, 'facebook' => 1, 'myspace' => 1, 'yahoo' => 1, 'linkedin' => 1, 'technorati_favorite' => 1, 'google_plus_one' => 1, ) $Links array ( 'facebook_widget' => array ( 'name' => 'Share on Facebook', 'link' => 'http://www.facebook.com/sharer.php', 'description' => 'Share this post on Facebook', 'javascript' => array ( 0 => 'http://static.ak.fbcdn.net/connect.php/js/FB.Share', 1 => 'facebook_share.js', ), 'icon' => 'facebook.png', 'style' => 1, 'callback' => 'ws_facebook_widget_share', 'module' => 'widget_services', ), 'twitter_widget' => array ( 'name' => 'Tweet Widget', 'link' => 'http://twitter.com/share?url=&count=&via=&text=&counturl=', 'icon' => 'twitter.png', 'description' => 'Tweet This', 'attributes' => array ( 'class' => array ( 0 => 'twitter-share-button', ), ), 'javascript' => 'http://platform.twitter.com/widgets.js', 'style' => 4, 'callback' => 'ws_twitter_widget_data', 'module' => 'widget_services', ), 'facebook_like' => array ( 'name' => 'Facebook Like', 'link' => 'http://www.facebook.com/plugins/like.php?href=&layout=&show_faces=&action=&colorscheme=&width=&height=&font=&locale=', 'icon' => 'facebook.png', 'description' => 'I Like it', 'javascript' => 'facebook_like.js', 'style' => 4, 'callback' => 'ws_facebook_widget_like', 'module' => 'widget_services', ), 'digg_smart_button' => array ( 'name' => 'Digg Smart Button', 'link' => 'http://digg.com/submit?url=&title=&related=&style=