{"id":316,"date":"2024-10-04T12:54:17","date_gmt":"2024-10-04T11:54:17","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=316"},"modified":"2024-10-04T12:54:17","modified_gmt":"2024-10-04T11:54:17","slug":"mwnci-push-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-push-function\/","title":{"rendered":"Mwnci push() Function"},"content":{"rendered":"<h2><span id=\"Syntax\" class=\"mw-headline\">Syntax<\/span><\/h2>\n<p>push(<i><b>array<\/b><\/i>, <i><b>value<\/b><\/i>)<\/p>\n<h2><span id=\"Description\" class=\"mw-headline\">Description<\/span><\/h2>\n<p>The <i>push()<\/i> will add the assigned <i>value<\/i> to the end of the named <i>array<\/i>. The return value will be the updated array.<\/p>\n<h2><span id=\"Example\" class=\"mw-headline\">Example<\/span><\/h2>\n<pre>a=[1,2,3,4]\r\na=push(a,5)\r\nprintln(a)\r\n[1, 2, 3, 4, 5]\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax push(array, value) Description The push() will add the assigned value to the end of the named array. The return value will be the updated array. Example a=[1,2,3,4] a=push(a,5) println(a) [1, 2, 3, 4, 5]<\/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-316","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/316","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=316"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/316\/revisions"}],"predecessor-version":[{"id":317,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/316\/revisions\/317"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}