What is the best way for a beginner to verify PHP CGI functions?

One way for a beginner to verify PHP CGI functions is to use the phpinfo() function, which displays information about PHP configuration, including enabled CGI functions. By running phpinfo() in a script and viewing the output in a browser, beginners can easily see which CGI functions are available for use.

<?php
phpinfo();
?>