{"id":1160,"date":"2025-05-21T12:29:38","date_gmt":"2025-05-21T11:29:38","guid":{"rendered":"https:\/\/monkey.ploogie.co.uk\/?page_id=1160"},"modified":"2025-05-21T12:29:38","modified_gmt":"2025-05-21T11:29:38","slug":"mwnci-cidrrange-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-cidrrange-function\/","title":{"rendered":"Mwnci cidrrange() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>cidrrange<strong>(<em>string<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>cidrrange()<\/i> function returns an array of IP&#8217;s that represent the first and last IP addresses in the given CIDR block.<\/p>\n<h2>Example<\/h2>\n<pre>include(\"net\")\r\nRange=cidrrange(\"192.168.0.0\/28\")\r\nprintln(\"The range is: \", Range[0], \" to \", Range[1])\r\n\r\n\r\nThe range is: 192.168.0.0 to 192.168.0.15<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax cidrrange(string) Description The cidrrange() function returns an array of IP&#8217;s that represent the first and last IP addresses in the given CIDR block. Example include(&#8220;net&#8221;) Range=cidrrange(&#8220;192.168.0.0\/28&#8221;) println(&#8220;The range is: &#8220;, Range[0], &#8221; to &#8220;, Range[1]) The range is: 192.168.0.0 to 192.168.0.15<\/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-1160","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1160","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=1160"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1160\/revisions"}],"predecessor-version":[{"id":1161,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1160\/revisions\/1161"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=1160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}