Posted By

xida on 05/04/10


Tagged


Versions (?)

get php major version


 / Published in: PHP
 

  1. $version = PHP_VERSION;
  2. echo 'The current version is: ' . $version[0];

Report this snippet  

You need to login to post a comment.