Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] tablice
-ktosik-
post
Post #1





Goście







WItam

Probuje zrobic upload wielu plikow naraz.

Mam taka tablice:

  1. <?php
  2. Array ( [0] => 1970.jpg [1] => 2002.jpg ) Array ( [0] => image/jpeg [1] => image/jpeg ) Array ( [0] => php98.tmp [1] => php99.tmp ) Array ( [0] => 0 [1] => 0 ) Array ( [0] => 30987 [1] => 58575 )
  3. ?>


Potrzebuje rozdielic na tablice [0] oraz [1] tak abym mogl wpetli zaladowac pliki.

Dzieki
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Skie
post
Post #2





Grupa: Zarejestrowani
Postów: 555
Pomógł: 84
Dołączył: 20.02.2008
Skąd: Małopolska

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


a więc Twoja tablica tak wygląda:

  1. <?php
  2. $tablica1 = array('1970.jpg', '2002.jpg');
  3. $tablica2 = array('image/jpeg', 'image/jpeg');
  4. $tablica3 = array('php98.tmp', 'php99.tmp');
  5. $tablica4 = array(0, 0);
  6. $tablica5 = array(30987, 58575);
  7. ?>


Trochę niewygodne, no ale cóż...

To zamieniaj takie coś na:

  1. <?php
  2. $tablica[0] = ($tablica1[0], $tablica2[0], $tablica3[0], $tablica4[0], $tablica5[0]);
  3. $tablica[1] = ($tablica1[1], $tablica2[1], $tablica3[1], $tablica4[1], $tablica5[1]);
  4. ?>
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: 12.10.2025 - 01:25