Code:
$tmp[1]
foreach (file('6134.txt') as $line) {
$tmp = explode('-', $line);
echo trim($tmp[0]);
}
$f = file('6134.txt'); for ($i = 0; $i < count($f); $i++) { $tmp = explode('_', $f[$i]); $tmp = explode('-', $f[$i]); $f[$i] = trim($tmp[1]). "<br>"; } print_r($f[1]);
$f = file('6134.txt');
for ($i = 0; $i < count($f); $i++) {
$tmp = explode('_', $f[$i]);
$tmp_neu = explode('-', $tmp[0]);
$f[$i] = trim($tmp_neu[0]). "<br>";
}
print_r($f);
Kommentar