{"id":1000,"date":"2024-12-16T14:47:49","date_gmt":"2024-12-16T14:47:49","guid":{"rendered":"https:\/\/monkey.ploogie.co.uk\/?page_id=1000"},"modified":"2024-12-16T14:48:13","modified_gmt":"2024-12-16T14:48:13","slug":"mwnci-rotr-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-rotr-function\/","title":{"rendered":"Mwnci rotr() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>rotr<strong>(<em>string|array<\/em>, <em>[integer]<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>rotr()<\/i> function will rotate the items in a string or array 1 element to the right if no integer amount is given, or by the amount stated by the given integer.<\/p>\n<h2>Example<\/h2>\n<pre>\r\na=[1,2,3,4,5,6]\r\na=rotr(a)\r\nprintln(a)\r\na=rotr(a, 3)\r\nprintln(a)\r\n\r\na=\"This is a string\"\r\na=rotr(a)\r\nprintln(a)\r\na=rotr(a, 6)\r\nprintln(a)\r\n\r\n\r\n[6, 1, 2, 3, 4, 5]\r\n[3, 4, 5, 6, 1, 2]\r\ngThis is a strin\r\n stringThis is a\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax rotr(string|array, [integer]) Description The rotr() function will rotate the items in a string or array 1 element to the right if no integer amount is given, or by the amount stated by the given integer. Example a=[1,2,3,4,5,6] a=rotr(a) println(a) a=rotr(a, 3) println(a) a=&#8221;This is a string&#8221; a=rotr(a) println(a) a=rotr(a, 6) println(a) [6, 1, 2, &hellip; <a href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-rotr-function\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Mwnci rotr() 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-1000","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1000","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=1000"}],"version-history":[{"count":2,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1000\/revisions"}],"predecessor-version":[{"id":1002,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1000\/revisions\/1002"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=1000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}