{"id":334,"date":"2024-10-04T13:10:28","date_gmt":"2024-10-04T12:10:28","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=334"},"modified":"2024-10-04T13:10:28","modified_gmt":"2024-10-04T12:10:28","slug":"mwnci-reverse-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-reverse-function\/","title":{"rendered":"Mwnci reverse() Function"},"content":{"rendered":"<h2><span id=\"Syntax\" class=\"mw-headline\">Syntax<\/span><\/h2>\n<p>reverse(<i><b>array|string<\/b><\/i>)<\/p>\n<h2><span id=\"Description\" class=\"mw-headline\">Description<\/span><\/h2>\n<p>The <i>reverse()<\/i> function reverses the contents of the elements within the array, or a string<\/p>\n<h2><span id=\"Example\" class=\"mw-headline\">Example<\/span><\/h2>\n<pre>foo=[1,2,3,4]\r\nfoo=reverse(foo)\r\nbar=\"foobar\"\r\nprintln(foo)\r\nprintln(reverse(bar))\r\n\r\n[4, 3, 2, 1]\r\nraboof<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax reverse(array|string) Description The reverse() function reverses the contents of the elements within the array, or a string Example foo=[1,2,3,4] foo=reverse(foo) bar=&#8221;foobar&#8221; println(foo) println(reverse(bar)) [4, 3, 2, 1] raboof<\/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-334","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/334","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=334"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/334\/revisions"}],"predecessor-version":[{"id":335,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/334\/revisions\/335"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}