<?php $path = '/a/b/c/d/e.f'; $matches = preg_split('/\/|\\\/', $path); $filename = $matches[count($matches) - 1]; if(strpos('.', $filename) !== -1) {}
You have javascript disabled. You will not be able to edit any code.