Online preg_replace( ) function


mixed preg_replace ( mixed $pattern , mixed $replacement , mixed $subject )
Given a string containing the path to a file or directory, this function will return the trailing name component.