Monday, May 27, 2013

Finding Extension of a File in PHP

Simply use pathinfo() function

$ext = pathinfo($_FILES['image']['name'], PATHINFO_EXTENSION);

No comments:

Post a Comment