{"id":751,"date":"2024-11-26T03:38:37","date_gmt":"2024-11-26T03:38:37","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=751"},"modified":"2024-11-26T03:40:57","modified_gmt":"2024-11-26T03:40:57","slug":"mwnci-split-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-split-function\/","title":{"rendered":"Mwnci split() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>split<strong>(<em>string<\/em><em>[,string]<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>split()<\/i> function splits a string into an array. An optional seconds string specifies the separator otherwise each character in the string a separated. <\/p>\n<h2>Example<\/h2>\n<pre>\r\na=\"This is a sentence\"\r\nprintln(split(a))\r\nprintln(split(a, \" \"))\r\nprintln(split(a, \"is\"))\r\n\r\n\r\n[\"T\", \"h\", \"i\", \"s\", \" \", \"i\", \"s\", \" \", \"a\", \" \", \"s\", \"e\", \"n\", \"t\", \"e\", \"n\", \"c\", \"e\"]\r\n[\"This\", \"is\", \"a\", \"sentence\"]\r\n[\"Th\", \" \", \" a sentence\"]\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax split(string[,string]) Description The split() function splits a string into an array. An optional seconds string specifies the separator otherwise each character in the string a separated. Example a=&#8221;This is a sentence&#8221; println(split(a)) println(split(a, &#8221; &#8220;)) println(split(a, &#8220;is&#8221;)) [&#8220;T&#8221;, &#8220;h&#8221;, &#8220;i&#8221;, &#8220;s&#8221;, &#8221; &#8220;, &#8220;i&#8221;, &#8220;s&#8221;, &#8221; &#8220;, &#8220;a&#8221;, &#8221; &#8220;, &#8220;s&#8221;, &#8220;e&#8221;, &#8220;n&#8221;, &#8220;t&#8221;, &hellip; <a href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-split-function\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Mwnci split() Function&#8221;<\/span><\/a><\/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-751","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/751","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=751"}],"version-history":[{"count":2,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/751\/revisions"}],"predecessor-version":[{"id":754,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/751\/revisions\/754"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}