Find all files with the extension ".php" in the current directory and up to three levels of subdirectories, and set the permissions to 0644 for each file.
find ~ -maxdepth 3 -type f -name "*.php" -exec chmod 0644 {} \;