<?php $file_name = '\\foo\\bar\\baz'; $file_name = 'baz'; $ext = substr($file_name, strrpos($file_name,'\\')+1); echo $ext;
You have javascript disabled. You will not be able to edit any code.