{"id":310,"date":"2024-10-04T12:52:07","date_gmt":"2024-10-04T11:52:07","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=310"},"modified":"2024-10-04T12:52:07","modified_gmt":"2024-10-04T11:52:07","slug":"mwnci-print-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-print-function\/","title":{"rendered":"Mwnci print() Function"},"content":{"rendered":"<h2><span id=\"Syntax\" class=\"mw-headline\">Syntax<\/span><\/h2>\n<p>print(<i><b>text1<\/b><\/i>,<i><b>[&#8230;,textn]<\/b><\/i>)<\/p>\n<p>println(<i><b>text1<\/b><\/i>,<i><b>[&#8230;,textn]<\/b><\/i>)<\/p>\n<h2><span id=\"Description\" class=\"mw-headline\">Description<\/span><\/h2>\n<p>The\u00a0<i>print()<\/i>\u00a0function prints\u00a0<i>text1&#8230;textn<\/i>\u00a0to the current console\/terminal. The text can be a mixture of text strings and\/or variables.<\/p>\n<p>The <i>println()<\/i> is identical to <i>print()<\/i> with the singular exception that it will add a newline to the end of each output.<\/p>\n<h2><span id=\"Example\" class=\"mw-headline\">Example<\/span><\/h2>\n<pre>print(\"Hello World\\n\")\r\nprint(\"Hello \", \"World\", \"\\n\")\r\nprint(\"Hello \")\r\nprint(\"World \\n\")\r\n\r\nprintln(\"Hello World\")\r\nplace=\"World\"\r\nprintln(\"Hello \", place)\r\nprint(\"Hello \")\r\nprintln(place)\r\n\r\n\r\nHello World\r\nHello World\r\nHello World \r\nHello World\r\nHello World\r\nHello World\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax print(text1,[&#8230;,textn]) println(text1,[&#8230;,textn]) Description The\u00a0print()\u00a0function prints\u00a0text1&#8230;textn\u00a0to the current console\/terminal. The text can be a mixture of text strings and\/or variables. The println() is identical to print() with the singular exception that it will add a newline to the end of each output. Example print(&#8220;Hello World\\n&#8221;) print(&#8220;Hello &#8220;, &#8220;World&#8221;, &#8220;\\n&#8221;) print(&#8220;Hello &#8220;) print(&#8220;World \\n&#8221;) println(&#8220;Hello World&#8221;) &hellip; <a href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-print-function\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Mwnci print() 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-310","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/310","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=310"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/310\/revisions"}],"predecessor-version":[{"id":311,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/310\/revisions\/311"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}