![]() |
![]() ![]() |
![]() |
![]() ![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 1 873 Pomógł: 152 Dołączył: 9.04.2006 Skąd: Berlin Ostrzeżenie: (0%) ![]() ![]() |
Witam. Mam problem. Kombinuje z kumplem jak rozbić sobie np. {ZMIENNE:tablica:tablica2:tablica3...}
Mozna to zrobić funkcja preg_replace_Callback (explode(':'..., układać jak sie da i eval()) ale to jest wolne ![]() Dlatego chciałbym spytać się czy ktoś nie zna sposobu na jakieś inne rozbicie tejże zmiennej. (tablic w zmiennej może być w nieskończoność) ![]() ![]() -------------------- |
|
|
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 44 Pomógł: 0 Dołączył: 22.10.2004 Skąd: Płock Ostrzeżenie: (0%) ![]() ![]() |
Hmm nie jestem pewien czy o to ci akurat chodzilo. -------------------- A Chartreux et à Célestins, A Mendiants et à Dévotes,
A musards et claquepatins, A servants et filles mignottes Portants surcots et justes cottes,A cuidereaux d'amour transis, Chaussant sans méhaing fauves bottes, Je crie à toutes gens mercis. |
|
|
![]()
Post
#3
|
|
![]() Grupa: Zarejestrowani Postów: 1 873 Pomógł: 152 Dołączył: 9.04.2006 Skąd: Berlin Ostrzeżenie: (0%) ![]() ![]() |
Napisałem że tak umiem. Chodzi bez evala bo zmniejsza mi 30% szybkości parsera
![]() ![]() -------------------- |
|
|
![]()
Post
#4
|
|
![]() Grupa: Zarejestrowani Postów: 44 Pomógł: 0 Dołączył: 22.10.2004 Skąd: Płock Ostrzeżenie: (0%) ![]() ![]() |
Tobie chodzi o eval czy o wybieranie ze {ZMIENNE:...} tablic?
-------------------- A Chartreux et à Célestins, A Mendiants et à Dévotes,
A musards et claquepatins, A servants et filles mignottes Portants surcots et justes cottes,A cuidereaux d'amour transis, Chaussant sans méhaing fauves bottes, Je crie à toutes gens mercis. |
|
|
![]()
Post
#5
|
|
![]() Grupa: Zarejestrowani Postów: 1 873 Pomógł: 152 Dołączył: 9.04.2006 Skąd: Berlin Ostrzeżenie: (0%) ![]() ![]() |
O wybieranie ale bez eval
![]() było $ZMIENNA[1][2][3][4] chodzi o przetworzenie ![]() ![]() -------------------- |
|
|
![]()
Post
#6
|
|
![]() Grupa: Zarejestrowani Postów: 44 Pomógł: 0 Dołączył: 22.10.2004 Skąd: Płock Ostrzeżenie: (0%) ![]() ![]() |
Wtedy masz teoretycznie tylko jeden eval... Bo bez w ogole to nie potrafie ci pomoc.;-) Nie jestem nawet pewien czy to zadziala;-) -------------------- A Chartreux et à Célestins, A Mendiants et à Dévotes,
A musards et claquepatins, A servants et filles mignottes Portants surcots et justes cottes,A cuidereaux d'amour transis, Chaussant sans méhaing fauves bottes, Je crie à toutes gens mercis. |
|
|
![]()
Post
#7
|
|
![]() Grupa: Zarejestrowani Postów: 1 873 Pomógł: 152 Dołączył: 9.04.2006 Skąd: Berlin Ostrzeżenie: (0%) ![]() ![]() |
Wrrr
![]() -------------------- |
|
|
![]()
Post
#8
|
|
![]() Grupa: Zarejestrowani Postów: 44 Pomógł: 0 Dołączył: 22.10.2004 Skąd: Płock Ostrzeżenie: (0%) ![]() ![]() |
Nie wiem jak by ci to mialo dzialac....
-------------------- A Chartreux et à Célestins, A Mendiants et à Dévotes,
A musards et claquepatins, A servants et filles mignottes Portants surcots et justes cottes,A cuidereaux d'amour transis, Chaussant sans méhaing fauves bottes, Je crie à toutes gens mercis. |
|
|
![]()
Post
#9
|
|
![]() Grupa: Zarejestrowani Postów: 1 873 Pomógł: 152 Dołączył: 9.04.2006 Skąd: Berlin Ostrzeżenie: (0%) ![]() ![]() |
no, np przyłączanie tablic (jaka to była funkcja...) i wywołał to w referencji ;P. Tylko nie mam pomysłu jak. Może ktoś wpadnie ?
-------------------- |
|
|
![]()
Post
#10
|
|
![]() Grupa: Przyjaciele php.pl Postów: 1 112 Pomógł: 20 Dołączył: 10.04.2005 Ostrzeżenie: (0%) ![]() ![]() |
hej, mam taką funkcję, która tłumaczy ścieżkę na tablicę:
nie wiem czy to do końca to co potrzebujesz, ale nie wykorzystuje tam eval, więc w razie czego bez problemu sobie przerobisz według potrzeb. Nie mam dostępu do tego kodu teraz, wieczorem dopisze tu. pozdr. |
|
|
![]()
Post
#11
|
|
![]() Grupa: Zarejestrowani Postów: 1 873 Pomógł: 152 Dołączył: 9.04.2006 Skąd: Berlin Ostrzeżenie: (0%) ![]() ![]() |
Zobacze, w pewnym sensie o to chodzi. Bo wyciagam tabica:tablica1:tablica2 wiec moge zamiast kropek zmienic na : ;P Dzieki
-------------------- |
|
|
![]()
Post
#12
|
|
![]() Grupa: Zarejestrowani Postów: 44 Pomógł: 0 Dołączył: 22.10.2004 Skąd: Płock Ostrzeżenie: (0%) ![]() ![]() |
hej, mam taką funkcję, która tłumaczy ścieżkę na tablicę:
nie wiem czy to do końca to co potrzebujesz, ale nie wykorzystuje tam eval, więc w razie czego bez problemu sobie przerobisz według potrzeb. Nie mam dostępu do tego kodu teraz, wieczorem dopisze tu. pozdr. Hmm, czy to nie jest funkcja Javy? -------------------- A Chartreux et à Célestins, A Mendiants et à Dévotes,
A musards et claquepatins, A servants et filles mignottes Portants surcots et justes cottes,A cuidereaux d'amour transis, Chaussant sans méhaing fauves bottes, Je crie à toutes gens mercis. |
|
|
![]()
Post
#13
|
|
![]() Grupa: Przyjaciele php.pl Postów: 1 112 Pomógł: 20 Dołączył: 10.04.2005 Ostrzeżenie: (0%) ![]() ![]() |
oto obiecana funkcja:
przykład:
wynik: Kod Array ( [foo] => Array ( [0] => bar1 [1] => bar2 [2] => bar3 [3] => bar4 ) ) mam nadzieje że się przyda :) Cytat Hmm, czy to nie jest funkcja Javy? @Kirtan Loor: hehe :) znam dwie Javy - Java wyspa jak wulkan gorąca i JavaScript :P Notacja jest jak faktycznie jak w JavaScript, ale funkcja jest zdecydowanie php. pozdr. |
|
|
![]()
Post
#14
|
|
![]() Grupa: Zarejestrowani Postów: 1 873 Pomógł: 152 Dołączył: 9.04.2006 Skąd: Berlin Ostrzeżenie: (0%) ![]() ![]() |
Wilkie dzieki ;P. Dodałem to do swojego prega i dziala:
-------------------- |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 18.07.2025 - 01:34 |