|
|
| Baumeister Mediasoft Engineering |
|
|
|
The phpversion() retrieves the current PHP version:
Output:
The string returned by phpversion() can easily be converted to a numeric value:
Output:
phpversion() can be used to control the execution of PHP functions with different implementations depending on the PHP version. The following code shows a version-independent application of the microtime() PHP function for retrieving the Unix timestamp with microseconds accuracy:
PHP Function phpversion (INFO) • © 2012 Manfred Baumeister • Updated: 02 October 2010, 23:36 [GMT] |
| Baumeister Mediasoft Engineering, Clontarf, Dublin 3, Ireland © 2012 Manfred Baumeister |
|