PHP Social share adding counter
<p>This is a Social share script. I want to echo each Array to show the Links. Could somebody explain me please how I can do it?</p>

<p>This is the <strong>Share button</strong> Part</p>

<pre><code>function simple_social_sharing( $attr_twitter = null, $attr_items = null ) {

    $share_items = array ();

    // set each item
    $item_facebook = array(
        "class" =&gt; "facebook",
        "href" =&gt; "http://www.facebook.com/sharer.php?u={$url}&amp;amp;t={$browser_title_encoded}",
        "text" =&gt; "Share on Facebook"
    );
    $item_twitter = array(
        "class" =&gt; "twitter",
        "href" =&gt; "http://twitter.com/share?text={$page_title_encoded}&amp;amp;url={$url}&amp;amp;via={$twitter_account}",
        "text" =&gt; "Share on Twitter"
    );

    // test whether to display each item
    if($item_toggles) {
        // explode into array
        $item_toggles_array = explode( ",", $item_toggles );
        // set each item on or off
        $show_facebook = $item_toggles_array['0'];
        $show_twitter = $item_toggles_array['1'];
    }
    else {
        $display_all_items = 1;
    }

    // form array of items set to 1
    if( $show_facebook==1 || $display_all_items ) {
        array_push( $share_items, $item_facebook );
    }
    if( $show_twitter==1 || $display_all_items) {
        array_push( $share_items, $item_twitter );
    }

    // if one or more items
    if ( ! empty( $share_items ) ) {
        // create output
        foreach ( $share_items as $share_item ) {   
            $share_output = "&lt;a class=\"ss-share-link ico-{$share_item['class']}\" href=\"{$share_item["href"]}\" rel=\"nofollow\" target=\"_blank\"&gt;{$share_item['text']}&lt;/a&gt;\n";      
        }
        // echo output
        echo $share_output;
    }

}
</code></pre>

<p>I have tried to do it by this way <strong>echo simple_social_sharing($share_output[1]);</strong> but did not worked.</p>
