{"id":828,"date":"2024-12-09T11:19:27","date_gmt":"2024-12-09T11:19:27","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=828"},"modified":"2024-12-09T11:19:27","modified_gmt":"2024-12-09T11:19:27","slug":"mwnci-trim-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-trim-function\/","title":{"rendered":"Mwnci trim() Function"},"content":{"rendered":"<h2><span id=\"Syntax\" class=\"mw-headline\">Syntax<\/span><\/h2>\n<p>trim(<i><b>string<\/b><\/i>,<i><b>[cutset]<\/b><\/i>)<\/p>\n<h2><span id=\"Description\" class=\"mw-headline\">Description<\/span><\/h2>\n<p><i>trim()<\/i> returns a string with all leading and trailing characters contained in <b>cutset<\/b> removed. If no <b>cutset<\/b> is defined, then all leading and trailing white spaces will be removed.<\/p>\n<h2><span id=\"Example\" class=\"mw-headline\">Example<\/span><\/h2>\n<pre>\r\nText=\"    Hello World!!!    \"\r\nprintln(\"->\", Text, \"<-\")\r\nText=trim(Text)\r\nprintln(\"->\", Text, \"<-\")\r\nText=trim(Text, \"H!\")\r\nprintln(\"->\", Text, \"<-\")\r\n\r\n\r\n->    Hello World!!!    <-\r\n->Hello World!!!<-\r\n->ello World<-\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax trim(string,[cutset]) Description trim() returns a string with all leading and trailing characters contained in cutset removed. If no cutset is defined, then all leading and trailing white spaces will be removed. Example Text=&#8221; Hello World!!! &#8221; println(&#8220;->&#8221;, Text, &#8220;&#8221;, Text, &#8220;&#8221;, Text, &#8220;<\/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-828","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/828","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=828"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/828\/revisions"}],"predecessor-version":[{"id":829,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/828\/revisions\/829"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}