This shows you the differences between two versions of the page.
ro:implode [2017/09/09 08:46] junior-root [Istoric] |
ro:implode [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Implode (Funcție) ===== | ||
- | > **Engleză: | ||
- | ==== Format ==== | ||
- | **implode** ( [[arrays|variabilă_tablou]] )\\ | ||
- | **implode** ( [[arrays|variabilă_tablou]] , [[stringexpressions|delimitator]] )\\ | ||
- | **implode** ( [[arrays|variabilă_tablou]] , [[stringexpressions|delimitator_rânduri]], | ||
- | **implode** ( [[Lists|{ x1, y1, x2, y2, x3, y3 ... }]] )\\ | ||
- | **implode** ( [[Lists|{ x1, y1, x2, y2, x3, y3 ... }]] , [[stringexpressions|delimitator]] )\\ | ||
- | **implode** ( [[Lists|{ x1, y1, x2, y2, x3, y3 ... }]] , [[stringexpressions|delimitator_rânduri]], | ||
- | **implode** ( [[Lists|{ {x1, y1}, {x2, y2}, {x3, y3} ... }]] )\\ | ||
- | **implode** ( [[Lists|{ {x1, y1}, {x2, y2}, {x3, y3} ... }]] , [[stringexpressions|delimitator]] )\\ | ||
- | **implode** ( [[Lists|{ {x1, y1}, {x2, y2}, {x3, y3} ... }]] , [[stringexpressions|delimitator_rânduri]], | ||
- | |||
- | Întoarce un [[stringexpressions|șir_de_caractere]]. | ||
- | ==== Descriere ==== | ||
- | Lipește elementele unui tablou într-un șir de caractere. În mod opțional se poate specifica un delimitator care să fie inserat între elemente. Această funcție acționează ca opus al funcției [[Explode|Explode]]. | ||
- | ==== Exemplu ==== | ||
- | < | ||
- | a = Explode(" | ||
- | print implode(a[]," | ||
- | print implode(a[]) | ||
- | b = Explode(" | ||
- | print implode(b[],", | ||
- | print implode(b[]) | ||
- | </ | ||
- | va afișa | ||
- | < | ||
- | Prune-caise-mere-pere-cireșe | ||
- | Prunecaisemereperecireșe | ||
- | 1, 2, 3.33, 4.44, 5.55 | ||
- | 123.334.445.55 | ||
- | </ | ||
- | ==== Vezi și ==== | ||
- | {{page> | ||
- | ==== Istoric ==== | ||
- | |0.9.6.57|Adăugată în acestă versiune| | ||
- | |1.99.99.55|S-au adăugat delimitatori și suportul pentru liste de elemente| | ||