I just tried to know version of my PHP from windows command typing,
C:\\> php -v
But it is not working. It says php is not recognized as internal or ex
Step 1 : Open CMD
Step 2 : Go to C:/xampp/php or htdocs path:/
step 3 : Type "php -v "
Result php version
Go to c drive and run the command as below
C:\xampp\php>php -v
Easy Method is: Just copy the file cmd.exe from c:/windows/system32/ and paste it to C:\xampp\php\ and run it, when the cmd opens type " php -v " without quotes and hit enter... you will get your php version.. thank you