$network); $result["{$position}_networks_order"][] = $network."|".$data["name"]; } foreach ($all_networks as $key => $data) { if (!in_array($key, $result["{$position}_networks"])) { $result["{$position}_networks_order"][] = $key."|".$data["name"]; } } $result ["{$position}_name_change"] = "true"; $result ["{$position}_facebook_name"] = "Share on Facebook"; $result ["{$position}_twitter_name"] = "Share on Twitter"; $result ["{$position}_google_name"] = "-"; $result ["{$position}_pinterest_name"] = "-"; $result ["{$position}_linkedin_name"] = "-"; $result ["{$position}_del_name"] = "-"; $result ["{$position}_stumbleupon_name"] = "-"; return $result; }