Sometimes, we want to get operating system info with PHP.
In this article, we’ll look at how to get operating system info with PHP.
How to get operating system info with PHP?
To get operating system info with PHP, we can use the get_browser
function.
For instance, we write
$browser = get_browser(null, true);
print_r($browser);
to call get_browser
to get the $browser
info.
It includes the info of the operating system that the $browser
is running on.
Conclusion
To get operating system info with PHP, we can use the get_browser
function.