Running PHP works in Command Prompt but not Git Bash

Solution 1:

What can I do to get PHP working through my Git Bash command line?

alias php='/c/wamp64/bin/php/php7.0.10/php'

Solution 2:

I entered the following command in git bash and it worked.

alias php='/d/xampp/php/php.exe'

Note: My xampp is installed in "D" drive (D:).