On an Ubuntu/Linux machine, how do you know what version of PHP is installed

Asked by andrew prudente

Like I know its PHP5 but there are sub-versions like 5-3.1 etc. How can I obtain this information

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Solved:
Last query:
Last reply:
Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :
#1

try from terminal:

apt-cache policy php5

Revision history for this message
andrew prudente (aprudente-99) said :
#2

Yes, thankyou, that reports the full version number.

regards,
andrew