title: How can I get the name of the image from url?
body: <p>I have a small question; In PHP I have used curl to get data from an URL:</p>
  
  <pre><code>$url = "http://www.prelovac.com/vladimir/wp-content/uploads/2008/03/example.jpg";
  </code></pre>
  
  <p>With that I use <code>curl_getinfo()</code> which gave me an array:</p>
  
  <pre><code>Array
  (
  [url] =&gt; http://www.prelovac.com/vladimir/wp-content/uploads/2008/03/example.jpg
  [content_type] =&gt; image/jpeg
  [http_code] =&gt; 200
  [header_size] =&gt; 496
  [request_size] =&gt; 300
  [filetime] =&gt; -1
  [ssl_verify_result] =&gt; 0
  [redirect_count] =&gt; 0
  [total_time] =&gt; 2.735
  [namelookup_time] =&gt; 0.063
  [connect_time] =&gt; 0.063
  [pretransfer_time] =&gt; 0.063
  [size_upload] =&gt; 0
  [size_download] =&gt; 34739
  [speed_download] =&gt; 12701
  [speed_upload] =&gt; 0
  [download_content_length] =&gt; 34739
  [upload_content_length] =&gt; -1
  [starttransfer_time] =&gt; 1.282
  [redirect_time] =&gt; 0
  )
  </code></pre>
  
  <p>How can I get the name of the image in the link <code>[url] =&gt; http://www.prelovac.com/vladimir/wp-content/uploads/2008/03/example.jpg</code> such as</p>
  
  <pre><code>[image_name] : example
  [image_ex] : jpg
  </code></pre>
  
  <p>Thanks for any suggestion!</p>