12.9 Joining Array Elements

Cows allows to join elements into a single string.

Added in G-Cows version 1.3

12.9.1 Synopsis

join (array [], separator)

12.9.2 Description

Return a string consisting of array elements separated by separator.

12.9.3 Example

sections [ ] = { "About Us", "Documentation", "Download", "Contact" };
print (join (sections [ ], " | "));

These lines will display:

About Us | Documentation | Download | Contact

This manual can be downloaded from http://www.g-cows.org/.