Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. end(explode('.', $file));
  2.  
  3. $string = "adsfasdfasd.234.asdfa.3rfr.jpg";
  4. echo pathinfo($string, PATHINFO_EXTENSION); // jpg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement