{"id":224,"date":"2024-09-30T19:52:15","date_gmt":"2024-09-30T18:52:15","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=224"},"modified":"2024-09-30T19:52:15","modified_gmt":"2024-09-30T18:52:15","slug":"mwnci-hassuffix-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-hassuffix-function\/","title":{"rendered":"Mwnci hassuffix() Function"},"content":{"rendered":"<h2><span id=\"Syntax\" class=\"mw-headline\">Syntax<\/span><\/h2>\n<p>hassuffix(<i><b>string<\/b><\/i>, <i><b>suffix<\/b><\/i>)<\/p>\n<h2><span id=\"Description\" class=\"mw-headline\">Description<\/span><\/h2>\n<p>The function <i>hassuffix()<\/i> tests whether the string ends with suffix.<\/p>\n<h2><span id=\"Example\" class=\"mw-headline\">Example<\/span><\/h2>\n<pre>if (hassuffix(\"Wobble.txt\", \".txt\")) {\r\n    println(\"It's a .txt file\")\r\n}\r\n\r\n\r\nIt's a .txt file\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax hassuffix(string, suffix) Description The function hassuffix() tests whether the string ends with suffix. Example if (hassuffix(&#8220;Wobble.txt&#8221;, &#8220;.txt&#8221;)) { println(&#8220;It&#8217;s a .txt file&#8221;) } It&#8217;s a .txt file<\/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-224","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/224","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=224"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/224\/revisions"}],"predecessor-version":[{"id":225,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/224\/revisions\/225"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}