how to know php version in windows code example
Example 1: checking php version
<?php
echo 'PHP version: ' . phpversion();
?>
Example 2: how to get php version in xampp
Open command prompt
Locate directory using cd C:/Xampp/php
Type command php -v
You will get your php version details
Example 3: check php version
/* in terminal type it*/
php -v