Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Przenumerowanie kluczy
lled3
post
Post #1





Grupa: Zarejestrowani
Postów: 91
Pomógł: 0
Dołączył: 7.12.2007

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


Jak przenumerowac klucze(glowne) na (0,1,2,3) w takiej tablicy ?

  1. <?php
  2. $arr = array ( 10 => array('id' => 'dix', 'aa' => '1010'),
  3.  100 => array('id' => 'cent', 'aa' => '100100'),
  4.  2 => array('id' => 'deux', 'aa' => '22'), 
  5.  7 => array('id' => 'sept', 'aa' => '77'));
  6. ?>
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
lled3
post
Post #2





Grupa: Zarejestrowani
Postów: 91
Pomógł: 0
Dołączył: 7.12.2007

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


a po oc definicja $arr2 = array();

skoro bez niej tez dziala (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
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: 29.12.2025 - 22:51