{"id":927,"date":"2024-12-13T10:43:26","date_gmt":"2024-12-13T10:43:26","guid":{"rendered":"https:\/\/monkey.ploogie.co.uk\/?page_id=927"},"modified":"2024-12-13T10:47:05","modified_gmt":"2024-12-13T10:47:05","slug":"mwnci-lines-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-lines-function\/","title":{"rendered":"Mwnci lines() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>lines<strong>(<em>string|array<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>lines()<\/i> function returns the amount of lines in a string (where lines are separated by &#8220;\\n&#8221;).<\/p>\n<p>An array can also be used, for which the amount of elements return.<\/p>\n<h2>Example<\/h2>\n<pre>\r\na=\"These are\\na few\\nlines of\\ntext we need\\nto count\"\r\nprintln(lines(a),\"\\n\", a)\r\n\r\n\r\n5\r\nThese are\r\na few\r\nlines of\r\ntext we need\r\nto count\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax lines(string|array) Description The lines() function returns the amount of lines in a string (where lines are separated by &#8220;\\n&#8221;). An array can also be used, for which the amount of elements return. Example a=&#8221;These are\\na few\\nlines of\\ntext we need\\nto count&#8221; println(lines(a),&#8221;\\n&#8221;, a) 5 These are a few lines of text we need to count<\/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-927","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/927","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=927"}],"version-history":[{"count":4,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/927\/revisions"}],"predecessor-version":[{"id":932,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/927\/revisions\/932"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}