Get file name of a URL in PHP
<p>I want to get the file name from a URL. But the problem is it's not ending with an extension.</p>

<p>For example, <a href="http://something.com/1245/65/" rel="nofollow">http://something.com/1245/65/</a>. On clicking this URL, we will get a PDF file. How do I store the file name of that file in a variable?</p>
