PHP file type limiter?

I'm just getting into PHP and have been playing around with a couple of upload scripts. Anyone know a (fairly simple) way to restrict file types that can be uploaded?

Thanks in advance.

 

 

 

 

Top