{"id":307,"date":"2018-05-03T01:21:06","date_gmt":"2018-05-02T19:21:06","guid":{"rendered":"https:\/\/mcqacademy.com\/en\/mcq\/whats-the-difference-between-unset-and-unlink\/"},"modified":"2018-05-03T01:21:06","modified_gmt":"2018-05-02T19:21:06","slug":"whats-the-difference-between-unset-and-unlink","status":"publish","type":"mcq","link":"https:\/\/mcqacademy.com\/en\/mcq\/whats-the-difference-between-unset-and-unlink\/","title":{"rendered":"What&#8217;s the difference between unset() and unlink()"},"content":{"rendered":"<p>What&#8217;s the difference between <code>unset()<\/code> and <code>unlink()<\/code><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","topic":[302],"subject":[34],"class_list":["post-307","mcq","type-mcq","status-publish","hentry","topic-php-functions","subject-php-programming"],"mcq_note":"The <code>unset()<\/code> sets the value of a variable to \"undefined\" while <code>unlink()<\/code> deletes a file we pass to it from the file system.","mcq_options":[{"right":"no","answer":"<code>unset()<\/code> deletes a file from the file system and <code>unlink()<\/code> sets a variable to \"undefined\"."},{"right":"yes","answer":"<code>unset()<\/code> sets a variable to \"undefined\" and <code>unlink()<\/code> deletes a file from the file system."},{"right":"no","answer":"<code>unset()<\/code> deletes a single file from the file system while <code>unlink()<\/code> can delete multiple file from the file system."},{"right":"no","answer":"<code>unset()<\/code> sets a variable to \"undefined\" and <code>unlink()<\/code> remove <code>href<\/code> attribute from html tag."}],"multi_answers":"no","subject_terms":[{"id":34,"title":"PHP Programming","slug":"php-programming"}],"topic_terms":[{"id":302,"title":"PHP Functions","slug":"php-functions"}],"_links":{"self":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/mcq\/307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/mcq"}],"about":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/types\/mcq"}],"author":[{"embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/comments?post=307"}],"wp:attachment":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/media?parent=307"}],"wp:term":[{"taxonomy":"topic","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/topic?post=307"},{"taxonomy":"subject","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/subject?post=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}