- var_dump: documentation ( source)
- explode: documentation ( source)
<?php
$strings = "Football / Germany / 1.Liga
Football / Germany / 1.Liga
Football / Germany / 2.Liga
Football / Germany / 2.Liga
Football / Germany / 2.Liga
Football / England / 1.Liga
Football / England / 1.Liga
Football / England / 2.Liga
Football / England / 2.Liga
Football / England / 3.Liga
Hockey / Germany / 1.Liga
Hockey / Germany / 1.Liga
Hockey / Germany / 2.Liga
Fechten / Meisterschaft
Fechten / Meisterschaft
Fechten / Weltmeister";
$array = explode("\n", $strings);
var_dump($array);