Create array from file_get_contents() value
<p>socallink.txt:</p>

<blockquote>
  <p>"Facebook","Twitter","Twitter","google-plus","youtube","pinterest","instagram"</p>
</blockquote>

<p>PHP:</p>

<pre><code>$file = file_get_contents('./Temp/socallink.txt', true);
$a1 = array($file);
print_r($a1);
</code></pre>

<p>Result :</p>

<pre><code>Array
(
    [0] =&gt; "Facebook","Twitter","Twitter","google-plus","youtube","pinterest","instagram"
)
</code></pre>

<p>Needed:</p>

<pre><code>$a1['0']=facebook;
$a1['1']=Twitter;
</code></pre>