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