{"id":276,"date":"2024-10-03T08:28:05","date_gmt":"2024-10-03T07:28:05","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=276"},"modified":"2024-10-03T08:28:05","modified_gmt":"2024-10-03T07:28:05","slug":"mwnci-join-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-join-function\/","title":{"rendered":"Mwnci join() Function"},"content":{"rendered":"<h2><span id=\"Syntax\" class=\"mw-headline\">Syntax<\/span><\/h2>\n<p>join(<i><b>array<\/b><\/i>, <i><b>separator<\/b><\/i>)<\/p>\n<h2><span id=\"Description\" class=\"mw-headline\">Description<\/span><\/h2>\n<p>Join concatenates the elements of array to create a single string. The separator string is placed between elements in the resulting string.<\/p>\n<h2><span id=\"Example\" class=\"mw-headline\">Example<\/span><\/h2>\n<pre>a=[\"This is line 1\", \"2\", \"Line 3\"]\r\nline=join(a, \"\\n\")\r\nprintln(line)\r\nline=join(a, \":\")\r\nprintln(line)\r\n\r\n\r\nThis is line 1\r\n2\r\nLine 3\r\nThis is line 1:2:Line 3\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax join(array, separator) Description Join concatenates the elements of array to create a single string. The separator string is placed between elements in the resulting string. Example a=[&#8220;This is line 1&#8221;, &#8220;2&#8221;, &#8220;Line 3&#8221;] line=join(a, &#8220;\\n&#8221;) println(line) line=join(a, &#8220;:&#8221;) println(line) This is line 1 2 Line 3 This is line 1:2:Line 3<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-276","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/276","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=276"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/276\/revisions"}],"predecessor-version":[{"id":277,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/276\/revisions\/277"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}