{"id":1295,"date":"2026-01-12T11:09:43","date_gmt":"2026-01-12T11:09:43","guid":{"rendered":"https:\/\/monkey.ploogie.co.uk\/?page_id=1295"},"modified":"2026-01-12T11:12:31","modified_gmt":"2026-01-12T11:12:31","slug":"mwnci-isequal-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-isequal-function\/","title":{"rendered":"Mwnci isequal() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>isequal<strong>(<em>string<\/em>,<em>string<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>isequal()<\/i> function returns <em>true<\/em> the first named file has the same inode and on the same device as the second named file, <em>false <\/em>if not. That is, the files are hard linked, or indeed the same file. <\/p>\n<h2>Example<\/h2>\n<pre>include(\"file\")\r\nprintln(isequal(\"\/bin\/ls\", \"\/bin\/ls\"))\r\nprintln(isequal(\"\/etc\/passwd\", \"\/bin\/ls\"))\r\n\r\ntrue\r\nfalse\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax isequal(string,string) Description The isequal() function returns true the first named file has the same inode and on the same device as the second named file, false if not. That is, the files are hard linked, or indeed the same file. Example include(&#8220;file&#8221;) println(isequal(&#8220;\/bin\/ls&#8221;, &#8220;\/bin\/ls&#8221;)) println(isequal(&#8220;\/etc\/passwd&#8221;, &#8220;\/bin\/ls&#8221;)) true false<\/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-1295","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1295","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=1295"}],"version-history":[{"count":2,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1295\/revisions"}],"predecessor-version":[{"id":1299,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1295\/revisions\/1299"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=1295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}