Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Tablica nie wypwłniona jak należy, Na początku jest ok później jest dno
mlody1982
post
Post #1





Grupa: Zarejestrowani
Postów: 31
Pomógł: 0
Dołączył: 11.03.2006

Ostrzeżenie: (0%)
-----


kod:
$uchwyt = @fopen ($_x, "r");
if ($uchwyt)
{
while (!feof($uchwyt))
{
$tmp['lines'] = fgets($uchwyt, 4096);
var_dump($tmp);
echo "<br><br>";
}
$arrPaths[] = $tmp;
var_dump($arrPaths);
}
@fclose($uchwyt);

Wynik:

array(1) { ["lines"]=> string(6) "1asd " }

array(1) { ["lines"]=> string(6) "2asd " }

array(1) { ["lines"]=> string(6) "3asd " }

array(1) { ["lines"]=> string(6) "4asd " }

array(1) { ["lines"]=> string(6) "5asd " }

array(1) { ["lines"]=> string(4) "6asd" }

array(1) { [0]=> array(1) { ["lines"]=> string(4) "6asd" } } <-- Dlaczego ta ma tylko ost element, potrzebuje wszystkie
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 15.09.2025 - 03:08