{"id":839,"date":"2024-12-09T13:24:13","date_gmt":"2024-12-09T13:24:13","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=839"},"modified":"2024-12-09T13:24:13","modified_gmt":"2024-12-09T13:24:13","slug":"mwnci-trimsuffix-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-trimsuffix-function\/","title":{"rendered":"Mwnci trimsuffix() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>trimsuffix<strong>(<em>string<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>trimsuffix()<\/i> function returns a strings with the stated suffix removed.<\/p>\n<h2>Example<\/h2>\n<pre>\r\nVersion=\"1.2_testing\"\r\nprintln(trimsuffix(Version, \"_testing\"))\r\nURL=\"https:\/\/foo.bar.com\/index.html\"\r\nURL=trimsuffix(URL, \"\/index.html\")\r\nprintln(URL)\r\n\r\n\r\n1.2\r\nhttps:\/\/foo.bar.com\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax trimsuffix(string) Description The trimsuffix() function returns a strings with the stated suffix removed. Example Version=&#8221;1.2_testing&#8221; println(trimsuffix(Version, &#8220;_testing&#8221;)) URL=&#8221;https:\/\/foo.bar.com\/index.html&#8221; URL=trimsuffix(URL, &#8220;\/index.html&#8221;) println(URL) 1.2 https:\/\/foo.bar.com<\/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-839","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/839","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=839"}],"version-history":[{"count":3,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/839\/revisions"}],"predecessor-version":[{"id":842,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/839\/revisions\/842"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}