write a php script to print current php version
 



   To check php version using php script you need to use php predefined function phpversion() 


code:-


<?php
echo 'Current PHP version : ' . phpversion();
?>

output:-


Current PHP version : 8.0

Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post