1 2 3 4 5
<?php $string="Hi.hi.there"; $first=pathinfo($string,PATHINFO_FILENAME); print $first;
1
Hi.hi