{"id":222,"date":"2024-09-30T19:51:24","date_gmt":"2024-09-30T18:51:24","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=222"},"modified":"2024-09-30T19:51:24","modified_gmt":"2024-09-30T18:51:24","slug":"mwnci-hasprefix-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-hasprefix-function\/","title":{"rendered":"Mwnci hasprefix() Function"},"content":{"rendered":"<h2><span id=\"Syntax\" class=\"mw-headline\">Syntax<\/span><\/h2>\n<p>hasprefix(<i><b>string<\/b><\/i>, <i><b>prefix<\/b><\/i>)<\/p>\n<h2><span id=\"Description\" class=\"mw-headline\">Description<\/span><\/h2>\n<p>The function <i>hasprefix()<\/i> tests whether a string begins with prefix. The return value will be true or false.<\/p>\n<h2><span id=\"Example\" class=\"mw-headline\">Example<\/span><\/h2>\n<pre>if (hasprefix(\"Wibble\", \"Wib\")) {\r\n    println(\"Starts with Wib\")\r\n}\r\n\r\n\r\nStarts with Wib\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax hasprefix(string, prefix) Description The function hasprefix() tests whether a string begins with prefix. The return value will be true or false. Example if (hasprefix(&#8220;Wibble&#8221;, &#8220;Wib&#8221;)) { println(&#8220;Starts with Wib&#8221;) } Starts with Wib<\/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-222","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/222","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=222"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/222\/revisions"}],"predecessor-version":[{"id":223,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/222\/revisions\/223"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}