I have php installed along with XAMPP. I can run php cli by typing /opt/lampp/bin/php -arguments-here, but I understand there must be a way to register a proper short command php -arguments-here ?
Edit: I edited .bash_profile as per answer below, but I still keep getting the error:
The program 'php' is currently not installed. You can install it by typing: sudo apt-get install php5-cli