I have installed php and in cmd on doing
sudo /usr/local/php7/bin/php -v
it shows the php version but on doing
php -v
its not showing getting us command not my phpinfo() also workd
how can I point to get php version on simply doing php -v
I am using centos7

/usr/local/binin your $PATH in .bashrc or .zshrc (if you use zsh)? It looks like just a problem of PATH configuration. You can check it withenv $PATH