This shows you the differences between two versions of the page.
uphp:functions:implode [2017/03/28 17:34] jeff |
uphp:functions:implode [2021/09/13 05:57] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======implode====== | ||
- | < | ||
- | |||
- | Turn an array into a string | ||
- | |||
- | ====Description==== | ||
- | <well size=" | ||
- | <span style=" | ||
- | < | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | </ | ||
- | Turn an array into a string with the delimiter separating each element | ||
- | |||
- | ====Parameters==== | ||
- | < | ||
- | |||
- | < | ||
- | |||
- | ====Return Value==== | ||
- | String containing concatenated elements | ||
- | |||
- | ====Example==== | ||
- | <code php> | ||
- | <? | ||
- | $mylist=array(" | ||
- | $st=implode($mylist," | ||
- | print($st); | ||
- | ?> | ||
- | </ | ||
- | |||
- | The above example will output: | ||
- | < | ||
- | one|two|three|four | ||
- | </ | ||
- | |||
- | ====See Also==== | ||
- | [[explode()]] - Turn a string into an array | ||
- | |||
- | [[array()]] - Create an array, with optional values | ||
- | |||
- | [[uphp: | ||
- | |||
- | ====Additional Information==== | ||
- | The mainline PHP function '' | ||
- | |||
- | Wattmon uPHP's parameter order is easier to remember and more consistent: | ||
- | |||