You want to check which version of PHP you have installed on your server. How would you do this?
- By opening the php.ini file.
- By using the phpinfo() function in a PHP script.
- By checking the server's control panel.
- All of the above.
The phpinfo() function can be used to check the installed version of PHP, among other things. When this function is called, it displays a large amount of information about the current state of PHP, including details about PHP compilation options and extensions, the PHP version, server information and environment, etc. Learn more: https://www.php.net/manual/en/function.phpinfo.php
Loading...
Related Quiz
- In PHP, constant identifiers are always case-______.
- How do you handle errors when using miscellaneous functions in PHP?
- In PHP OOP, a class implements an interface using the implements keyword like class ClassName implements ______.
- How can we determine whether a PHP variable is an instantiated object of a certain class?
- How is the result set of MySQL handled in PHP?