Del siguiente codigo
<?php
$file="datos/datos.txt";
$fopen = fopen($file, "r");
$fread = fread($fopen,filesize($file));
fclose($fopen);
$remove = "\n";
$split = explode($remove, $fread);
$array[] = NULL;
$tab = "\t";
foreach ($split as $string)
{
$row = explode($tab, $string);
array_push($array,$row);
}
echo "<pre>";
print_r(array_slice($array, 2));
echo "</pre>";
?>
Me da este resultado
[0] => Array ( [0] => 1 [1] => 09419075 [2] => OPERACIONES [3] => 2020-08-20 01:52:41 [4] => 1 ) [1] => Array ( [0] => 2 [1] => 23638570 [2] => OPERACIONES [3] => 2020-08-20 02:29:54 [4] => 1 ) [2] => Array ( [0] => 3 [1] => 10377966 [2] => OPERACIONES [3] => 2020-08-20 09:03:57 [4] => 1 )
Lo que quiero hacer es algo que solo me imprima [1] y el [3] de cada arreglo Ejm:
[0] => Array ( [1] => 09419075 [3] => 2020-08-20 01:52:41 ) [1] => Array ( [1] => 23638570 [3] => 2020-08-20 02:29:54 ) [2] => Array ( [1] => 10377966 [3] => 2020-08-20 09:03:57 )
que me pueden recomendar para solventar esto puede ser php con javascript como quieran porque no tengo idea de hacerlo