Write a PHP script to print current PHP version.
<?php echo 'Current PHP version : ' . phpversion(); // prints e.g. '2.0' or nothing if the extension isn't enabled echo phpversion('tidy')."\n"; ?>
Sample Output:
Current PHP version : 7.0.15-0ubuntu0.16.04.4
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer