Deleting Symbolic Links in PHP
<p>What is the proper way to delete symbolic links, preserving what they link to? 
What is the proper way to delete what they link to? Which would <a href="http://php.net/manual/en/function.unlink.php" rel="nofollow">unlink</a> do?  There seems to be some <a href="https://bugs.php.net/bug.php?id=52176" rel="nofollow">ambiguity</a>.</p>

<p>Through a little testing, symbolic links respond to <a href="http://php.net/manual/en/function.is-file.php" rel="nofollow">is_file</a> and <a href="http://php.net/manual/en/function.is-dir.php" rel="nofollow">is_dir</a> according to what they point to, as well as returning <code>true</code> to <a href="http://php.net/manual/en/function.is-link.php" rel="nofollow">is_link</a>.</p>
