- var_dump: documentation ( source)
- implode: documentation ( source)
- explode: documentation ( source)
- array_pop: documentation ( source)
<?php
$latestDraftFileName = "100497-1_9603_H.I.S._181026_J_NCFD.docx";
$explodefileBaseName = explode(".", $latestDraftFileName);
$ext = array_pop($explodefileBaseName);
$fileBaseName = implode('.', $explodefileBaseName);
var_dump($ext);
var_dump($fileBaseName);
?>