phpversion

phpversion -- Get the current PHP version.

Description

string phpversion(void);

Returns a string containing the version of the currently running PHP parser.

Example 1. phpversion() example

  1 
  2 // prints e.g. 'Current PHP version: 3.0rel-dev'
  3 echo "Current PHP version: ".phpversion();
  4       

See also phpinfo().