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
Nothing to worry it's easy
If you are using any local server like Wamp, Xampp then Go to this Steps
You will find php.exe, Once you get php.exe then you are done. Just type the path like below, here i am using XAMPP and type v for checking version and you are done.
C:>"C:\xampp\php\php.exe" -v
Thanks.