What are common issues with PHP installation, specifically when using XAMPP?

One common issue with PHP installation when using XAMPP is the "PHP is not recognized as an internal or external command" error. This error occurs when the PHP executable path is not properly set in the system environment variables. To solve this issue, you need to add the PHP executable path to the PATH variable in the system environment variables.

// Add PHP executable path to the PATH variable in the system environment variables
// Example path: C:\xampp\php