Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> problem z implode
phoenix84
post
Post #1





Grupa: Zarejestrowani
Postów: 218
Pomógł: 0
Dołączył: 14.04.2004
Skąd: Słupsk, Nowy Sącz

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


sluchajcie.. .dziwny zonk...
bo mam sobie np. tablice
$a[0]='q';
$a[1]='w';
$a[5]='e';
$tekst=implode('!',$a);

i wynik mam: 'q!w!e'; (czyli pominal puste elementy w tablicy (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) )
wolalbym tak: 'q!w!!!!e'; (czyl izeby puste elementy traktowal jak elementy, ale puste (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) )

mysle, ze kumacie o co chodzi...

pozdro

Phoenix

p.s. pomyslilem implode z include, bo 3 w nocy byla... (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) , ale w skrupcie sie nie pomylilem... (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)

Ten post edytował phoenix84 17.03.2005, 12:04:23
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
phoenix84
post
Post #2





Grupa: Zarejestrowani
Postów: 218
Pomógł: 0
Dołączył: 14.04.2004
Skąd: Słupsk, Nowy Sącz

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


szkoda, ze je trzeba deklarowc... a jest jakas funkcja zeby uzupelnial wszystkie brakujace elementy tablicy pustymi elementami? (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) ...
czy trzeba robic petle? (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

pozdro

Phoenix
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: 3.10.2025 - 00:38