1
I’m making a view taking data from a txt file but the function is returning the whole row and I just want the column. There would be a way to bring only the specific column.
public function carregarPA($arq,$linha){
$arquivo = file($arq);
$y = $linha - 1;
return $arquivo[$y];
}
In the template the return is as follows:
67 0 0 0 0 0 0 82 0 68 12 0 0 2 . 00
I only want the number "82". I’ve tried with the explode() but it didn’t work.
It worked, thank you very much.
– user71502