$split_filename = preg_split('/\./', $_FILES["userfile"]["name"], -1);
However, when I do a count($split_filename) I don't get what I expect. For instance if the input is:
abc.xyz.123
I get 2 from count, why doesn't preg_split put three elements in the array? It works since I'm actually looking for the last part of the filename. Thanks for any help.
Andrew.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php