I am currently learning from the book, Eric Rosebrock's "Creating interactive websites with PHP and web services" it is a great book, but I have a question.
I have a string loaded from mysql that looks like this:
$allowedfiletypes = '".jpg", ".tif", ".gif", ".png"';
I want to turn this into an array but its not working, I'm trying something like:
$allowedfiletypes = array($allowedfiletypes);
so that if I print_r it it will output something like:
[0] => .jpg
[1] => .gif
[2] => .png
etc...
I am doing this because I want to check that a file type is allowed before it is uploaded in a script.
Thanks so much, hope this is understandable,
Todd