allora facendo cosi:
codice:
$filecontent = file('demo/progetti.txt');
$arrayRow = array();
foreach($filecontent as $row){
if(($pos = strpos($row, "-"))===false){
//metti le altre in un altro array se ti interessa
//INIZIALIZZALO PRIMA DEL FOREACH
$arrayRow[]= $row;
}
else{
$array[] = substr($row, 0, 30);
}
}
print_r($array);
in pratica print_r($array); mi stampa quello che voglio, però, in questo formato:
Array ( [0] => - I MORDANA sono entrati in st [1] => - I RAGNO89 stanno realizzando [2] => - La COMPAGNIA POPULARIA, sta [3] => - CRUSTY BURGER:il demo è stat )
come faccio a togliere, Array([0]=> [1] => ect ect dalla visualizzazione?
Lo so che adesso, stò esagerando...ma non ci riesco
Grazie ancora