This shows you the differences between two versions of the page.
uphp:functions:implode [2017/02/28 13:36] 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); | ||
- | /* result is: | ||
- | one|two|three|four | ||
- | */ | ||
- | ?></ | ||
- | |||
- | ====See Also==== | ||
- | [[explode()]] - Turn a string into an array | ||
- | |||
- | [[array()]] - Create an array with values | ||
- | |||
- | [[uphp: | ||
- | |||
- | ====Additional Information==== | ||
- | The mainline PHP function '' | ||
- | |||
- | Wattmon uPHP's parameter order is easier to remember and more consistent: | ||
- | |||