I have just installed XAMPP 7.4.19, it's working perfectly but I'm unable to set environment for php. I also looked at the few URL(s) mentioned below:
https://wiki.archlinux.org/title/environment_variables
but still no success
The thing which worked for me is
set PATH $PATH /opt/lampp/bin:$PATH
But it is not a great solution as it stops working after session gets expired. In which file should I paste this code?