Zip only specific extensions on Linux/Debian

Case Requirement: I wanted to download only the PHP files in the existing folder structure leaving all the images, js and other folders.

Zip Command

zip -R onlyphp.zip  '*.php'

Zip command to Download PHP and HTML Files.

zip -r foo website_folder -i '*.php' '*.html' '*.js' '*.css'