Erstellen Sie ein array von file_get_contents() Wert

socallink.txt:

"Facebook","Twitter","Twitter","google plus","youtube","pinterest","instagram"

PHP:

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

Ergebnis :

Array
(
    [0] => "Facebook","Twitter","Twitter","google-plus","youtube","pinterest","instagram"
)

Benötigt:

$a1['0']=facebook;
$a1['1']=Twitter;

InformationsquelleAutor Mikel Tawfik | 2016-05-13

Schreibe einen Kommentar