Quickly validate PHP files

Ever needed to quickly scan a directory full of PHP files for syntax errors? You can do this quickly on a *nix command line with:

find . -type f -name \*.php -exec php -l {} \;

Tagged as: bash command line files php validate