3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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); ?>
based on OINFA
Output for 5.6.38 - 7.3.0rc3
string(4) "docx" string(39) "100496-1_7833_IFISJAPAN_181026_J_NCFD_1"