- var_dump: documentation ( source)
- implode: documentation ( source)
- explode: documentation ( source)
- array_pop: documentation ( source)
<?php
$latestDraftFileName = "100496-1_7833_IFISJAPAN_181026_J_NCFD_1.docx";
$explodefileBaseName = explode(".", $latestDraftFileName);
$ext = array_pop($explodefileBaseName);
$fileBaseName = implode('.', $explodefileBaseName);
var_dump($ext);
var_dump($fileBaseName);
?>